FUEL: Fix for indentation after brace-words.
parent
bb7c82a9aa
commit
732c525eaa
|
@ -63,12 +63,12 @@
|
||||||
"UNION:" "USE:" "USING:"
|
"UNION:" "USE:" "USING:"
|
||||||
"VARS:"))
|
"VARS:"))
|
||||||
|
|
||||||
(defconst fuel-syntax--bracers
|
|
||||||
'("B" "BV" "C" "CS" "H" "T" "V" "W"))
|
|
||||||
|
|
||||||
(defconst fuel-syntax--parsing-words-regex
|
(defconst fuel-syntax--parsing-words-regex
|
||||||
(regexp-opt fuel-syntax--parsing-words 'words))
|
(regexp-opt fuel-syntax--parsing-words 'words))
|
||||||
|
|
||||||
|
(defconst fuel-syntax--bracers
|
||||||
|
'("B" "BV" "C" "CS" "H" "T" "V" "W"))
|
||||||
|
|
||||||
(defconst fuel-syntax--brace-words-regex
|
(defconst fuel-syntax--brace-words-regex
|
||||||
(format "%s{" (regexp-opt fuel-syntax--bracers t)))
|
(format "%s{" (regexp-opt fuel-syntax--bracers t)))
|
||||||
|
|
||||||
|
@ -216,8 +216,7 @@
|
||||||
(" \\(|\\) " (1 "(|"))
|
(" \\(|\\) " (1 "(|"))
|
||||||
(" \\(|\\)$" (1 ")"))
|
(" \\(|\\)$" (1 ")"))
|
||||||
;; Opening brace words:
|
;; Opening brace words:
|
||||||
(,(format "\\_<%s\\({\\)\\_>" (regexp-opt fuel-syntax--bracers)) (1 "(}"))
|
("\\_<\\w*\\({\\)\\_>" (1 "(}"))
|
||||||
("\\_<\\({\\)\\_>" (1 "(}"))
|
|
||||||
("\\_<\\(}\\)\\_>" (1 "){"))
|
("\\_<\\(}\\)\\_>" (1 "){"))
|
||||||
;; Parenthesis:
|
;; Parenthesis:
|
||||||
("\\_<\\((\\)\\_>" (1 "()"))
|
("\\_<\\((\\)\\_>" (1 "()"))
|
||||||
|
|
Loading…
Reference in New Issue