branch: elpa/julia-mode
commit 9dd8281c3f39081615c8c265b58e4ce31abd7ae3
Author: Ron Rock <[email protected]>
Commit: Yichao Yu <[email protected]>
Add support for multiline comments
I'm unclear about the purpose of the `b` flag, but it seems to work
---
julia-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/julia-mode.el b/julia-mode.el
index 119530b..a66c092 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -24,7 +24,8 @@
(modify-syntax-entry ?_ "w" table) ; underscores in words
(modify-syntax-entry ?@ "w" table)
(modify-syntax-entry ?. "_" table)
- (modify-syntax-entry ?# "<" table) ; # single-line comment start
+ (modify-syntax-entry ?# "< 14" table) ; # single-line and multiline start
+ (modify-syntax-entry ?= ". 23bn" table)
(modify-syntax-entry ?\n ">" table) ; \n single-line comment end
(modify-syntax-entry ?\{ "(} " table)
(modify-syntax-entry ?\} "){ " table)
@@ -45,7 +46,6 @@
(modify-syntax-entry ?- "." table)
(modify-syntax-entry ?< "." table)
(modify-syntax-entry ?> "." table)
- (modify-syntax-entry ?= "." table)
(modify-syntax-entry ?% "." table)
table)
"Syntax table for `julia-mode'.")