From 53a955c4921b90b190c154be92284fc5f03d0a1b Mon Sep 17 00:00:00 2001 From: Oliver Frank Date: Mon, 2 Mar 2020 22:14:03 +0000 Subject: [PATCH] Fix the match block indentation --- gdscript-rx.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdscript-rx.el b/gdscript-rx.el index 2d1ae94..46d7b10 100644 --- a/gdscript-rx.el +++ b/gdscript-rx.el @@ -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))