]> gitweb.factorcode.org Git - factor.git/commitdiff
FUEL: this fix makes it so stack effects spread out over multiple lines highlight
authorBjörn Lindqvist <bjourne@gmail.com>
Tue, 4 Aug 2015 23:41:33 +0000 (01:41 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 6 Aug 2015 16:21:33 +0000 (09:21 -0700)
misc/fuel/factor-mode.el

index 73a45a2c169bab6887fd1e20bdab90dbf4f0c768..cd497297e5b678e2db78ca48ec480539bfe3ec2a 100644 (file)
@@ -184,7 +184,7 @@ these lines in your .emacs:
 ;;; Regexps galore:
 
 ;; Utility regexp used by other regexps to match a Factor symbol name
-(setq-local symbol "\\(\\(?:\\sw\\|\\s_\\)+\\)")
+(setq-local symbol "\\(\\(?:\\sw\\|\\s_\\|\\s(\\|\\s)\\)+\\)")
 (setq-local ws+ "[ \n\t]+")
 (setq-local symbols-to-semicolon "\\([^;\t]*\\)\\(;\\)")
 
@@ -208,7 +208,7 @@ these lines in your .emacs:
                 ('scan-error nil))
           (let ((bracket-stop (point)))
             (goto-char bracket-start)
-            (re-search-forward ".+" bracket-stop 'mv)))))))
+            (re-search-forward "\\(.\\|\n\\)+" bracket-stop 'mv)))))))
 
 ;; Excludes parsing words that are handled by other regexps
 (defconst factor-parsing-words