mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2026-01-05 22:10:05 +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)
|
(defmacro gdscript-rx (&rest regexps)
|
||||||
"Gdscript mode specialized rx macro.
|
"Gdscript mode specialized rx macro.
|
||||||
This variant of `rx' supports common Gdscript named REGEXPS."
|
This variant of `rx' supports common Gdscript named REGEXPS."
|
||||||
`(rx-let ((block-start (seq symbol-start
|
`(rx-let ((block-start (seq (zero-or-more nonl)
|
||||||
(or "func" "static" "class" "if" "elif" "else"
|
":"
|
||||||
"for" "while" "match")
|
(or (seq (zero-or-more " ") eol)
|
||||||
symbol-end))
|
(seq (zero-or-more " ") "#" (zero-or-more nonl) eol))))
|
||||||
(dedenter (seq symbol-start
|
(dedenter (seq symbol-start
|
||||||
(or "elif" "else")
|
(or "elif" "else")
|
||||||
symbol-end))
|
symbol-end))
|
||||||
|
|||||||
Reference in New Issue
Block a user