summaryrefslogtreecommitdiff
path: root/snakemake-mode.el
AgeCommit message (Collapse)Author
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
2015-06-03Coexist with Python mode Imenu itemsKyle Meyer
2015-06-03Expose --touch flag in snakemake-compile-ruleKyle Meyer
2015-04-09Fix broken regexpsKyle Meyer
When switching to rx in the last commit (38e5bfec0147), I unintentionally changed two regular expressions, which broke imenu indexing and highlighting for top-level keywords and rules.
2015-04-08Use rx to make regular expressionsKyle Meyer
2015-04-08snakemake-builtin-function-re: Reword docstringKyle Meyer
2015-04-08Remove leftover concatKyle Meyer
2015-04-08Use font-lock-defaultsKyle Meyer
Major modes should set font-lock-defaults: (info "(elisp)Font Lock Basics")
2015-03-07Rework indentationKyle Meyer
- Change continued field values to support Python indentation. This is useful when the value is using something like format (but only applies to naked field keys). - Don't move back to the start of the line when in a continued field value. - When on the first line of block, only indent to main offset. - Move to current indentation if point is before it. Unless there is one possible value for indentation, don't adjust indentation any further.
2015-03-07Use syntax code for whitespace regexKyle Meyer
2015-03-06Fix 'version' keyword typoKyle Meyer
2015-03-06Add 'log' and 'benchmark' keywordsKyle Meyer
2015-03-05Indent field values that start on their own lineKyle Meyer
Previously, indentation was handled only for the first line following a run value. Extend this to support any field value that starts on the line below a field key, since that is valid syntax.