mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2025-12-31 21:48:34 +03:00
Merge pull request #32 from ofrank123/match-indent-fix
Fix the match block indentation
This commit is contained in:
@@ -40,10 +40,10 @@
|
||||
(defmacro gdscript-rx (&rest regexps)
|
||||
"Gdscript mode specialized rx macro.
|
||||
This variant of `rx' supports common Gdscript named REGEXPS."
|
||||
`(rx-let ((block-start (seq symbol-start
|
||||
(or "func" "static" "class" "if" "elif" "else"
|
||||
"for" "while" "match")
|
||||
symbol-end))
|
||||
`(rx-let ((block-start (seq (zero-or-more nonl)
|
||||
":"
|
||||
(or (seq (zero-or-more " ") eol)
|
||||
(seq (zero-or-more " ") "#" (zero-or-more nonl) eol))))
|
||||
(dedenter (seq symbol-start
|
||||
(or "elif" "else")
|
||||
symbol-end))
|
||||
|
||||
Reference in New Issue
Block a user