aboutsummaryrefslogtreecommitdiff
path: root/snakemake-mode.el
AgeCommit message (Collapse)Author
2017-02-26snakemake-mode-setup-mmm: Protect doc-string's single quotesKyle Meyer
As of Emacs 25, single quotes in doc-strings are rendered according to text-quoting-style, which by default results in single quotes being displayed as curved quotes. Instead of protecting single quotes with "\\=", switch some to double quotes (which still need to be escaped, but in a less jarring way), and avoid quoting symbols, which are better represented within `'.
2017-02-26snakemake-mode-setup-mmm: Touch up doc-stringKyle Meyer
The changes to the first paragraph will make the following commit cleaner. Also, there's no need to tell users where to set mmm-global-mode.
2016-11-22Bump versionv1.1.0Kyle Meyer
2016-11-17snakemake-rx-constituents: Support more built-in Snakemake objectsKyle Meyer
Using "input" here overrides the highlighting of "input" by python-font-lock-keywords, although in either case font-lock-builtin-face is used. The addition of "output" to the regexp means that output and input are now displayed with a consistent face in run blocks. Fixes #20.
2016-11-17snakemake-font-lock-keywords: Increase field key precedenceKyle Meyer
Instead of distinguishing built-ins from field keys by a trailing "(", make the field key regexp, which is more specific, have a higher precedence. This allows Snakemake built-ins to be highlighted correctly even if they are not called as functions.
2016-11-17snakemake-rx-constituents: Replace sm-func with sm-builtinKyle Meyer
The sm-builtin regexp will be extended to support built-in Snakemake objects like "input" and "output", at which point "function" will no longer be an accurate description.
2016-11-15Support 'conda' keywordKyle Meyer
2016-11-10Bump versionv1.0.0Kyle Meyer
2016-10-26cosmetics: Use zerop instead of (= 0 ...)Kyle Meyer
2016-09-02Decrease font lock precedence of command keywordsKyle Meyer
The keyword wildcard_constraints can be either a top-level command or a rule field keyword. The previous order in snakemake-font-lock-keywords resulted in wildcard_constraints always be highlighted as a command key. Rearrange the font lock list order to put the field key entry first. This should result in the correct highlighting in every case except for when a command key is indented (e.g., under an "if"), but this presumably will occur much less frequently than wildcard_constraints being used as a field keyword.
2016-09-02Support 'wildcard_constraints' keywordKyle Meyer
wildcard_constraints was added in Snakemake v3.8.0 (feb6aee).
2016-05-27Bump versionv0.5.1Kyle Meyer
2016-05-26Add snakemake-rx macroKyle Meyer
2016-05-25snakemake-rule-or-subworkflow-re: SimplifyKyle Meyer
2016-05-24indentation: Account for trailing commentsKyle Meyer
2016-05-24Fix indentation for continued lines under naked ruleKyle Meyer
2016-05-17Bump versionv0.5.0Kyle Meyer
2016-05-16Don't use prog-widen and prog-first-columnKyle Meyer
These functions aren't in Emacs 24.* and have been removed from the emacs-25 branch. See Emacs 124c486 (Remove prog-indentation-context, 2016-03-28).
2016-05-11Extend snakemake-block-bounds functionKyle Meyer
Include name and block type.
2016-05-11Fix add-log-current-defun-function assignmentKyle Meyer
2016-05-11Define function for add-log-current-defun-functionKyle Meyer
2016-05-11Define defun navigation commandsKyle Meyer
2016-05-11Add snakemake-block-bounds functionKyle Meyer
2016-05-11Rework indentationKyle Meyer
The previous implementation did not support some legal syntax: * spaces between rule lines * indented rule blocks (e.g., a rule defined under an if-statement) * top-level commands like "include" when the value started on the second line (re: #16)
2016-05-04snakemake-toplevel-command-re: Allow leading spacesKyle Meyer
Fixes #17.
2016-05-03Be more lenient with spacing in regexpsKyle Meyer
2016-05-03Allow spaces after rule/subworkflow nameKyle Meyer
2016-05-03mode: Add ".rules" as a file suffixKyle Meyer
Closes #15.
2016-04-22Declare MMM mode functionsKyle Meyer
2016-04-22Syntax-highlight embedded R codeEndre Bakken Stovner
2016-04-18Bump versionv0.4.0Kyle Meyer
2016-04-16Add wrapper keywordKyle Meyer
This keyword was added in Snakemake version 3.5.5.
2016-04-16Support anonymous rule blocksKyle Meyer
2016-04-15mode: Unset indent-region-functionKyle Meyer
Don't use python-indent-region for indent-region-function. At first glance, setting indent-region-function to nil (that is, running indent-according-to-mode on each line) seems to indent rule blocks fine, though it will probably fail on more complex "run" values. However, this does mean that python-indent-region is no longer used when indent-region is called with a region that doesn't include a rule block, so it's probably worth adding a snakemake-indent-region function that calls python-indent-region in this case. Re: #8
2016-03-12mode: Add ".snakefile" as a file suffixKyle Meyer
https://groups.google.com/d/msg/snakemake/segLE-RlV_s/nQCTxH_TJwAJ
2016-02-28Fix rule recognition at beginning of bufferKyle Meyer
2016-02-28Add popup interface for compilationKyle Meyer
2016-02-27snakemake-mode.el: Remove local variables footerKyle Meyer
2016-02-09imenu: Use same order as bufferKyle Meyer
2016-02-07Bump versionv0.3.0Kyle Meyer
2016-02-07Add 'script' keywordKyle Meyer
This keyword was added in Snakemake 3.5.
2016-02-07Reorganize keyword listsKyle Meyer
2016-02-07Rely on implicit group for defcustom'sKyle Meyer
2016-01-17Update copyright yearsKyle Meyer
2016-01-17Highlight Snakefile errors in compilation buffersKyle Meyer
2016-01-17commentary: Update URL for Snakemake's new homeKyle Meyer
2015-12-24Recognize blank lines in rule docstringsKyle Meyer
2015-12-24Use lexical bindingKyle Meyer
2015-11-03Add shadow keyword for rulesSimon Ye
2015-06-10Recognize touch functionKyle Meyer
The touch flag was just recently documented: https://groups.google.com/d/msg/Snakemake/ZxUo20DV2KE/0S1rBj0XzwQJ