Merge pull request #55 from VlachJosef/master

Fix deindentation for elif and else keywords
This commit is contained in:
Nathan Lovato
2020-05-24 08:55:14 -06:00
committed by GitHub

View File

@@ -1445,10 +1445,9 @@ following constructs:
(defmacro gdscript-rx (&rest regexps)
"Gdscript mode specialized rx macro.
This variant of `rx' supports common Gdscript named REGEXPS."
`(gdscript-rx-let ((block-start (seq (zero-or-more nonl)
":"
(or (seq (zero-or-more " ") eol)
(seq (zero-or-more " ") "#" (zero-or-more nonl) eol))))
`(gdscript-rx-let ((block-start (seq symbol-start
(or "func" "class" "if" "elif" "else" "for" "while" "match")
symbol-end))
(dedenter (seq symbol-start
(or "elif" "else")
symbol-end))