branch: elpa/swift-mode
commit d77b2df34635c60e716329c2b80f9762699ea7ea
Author: ap4y <[email protected]>
Commit: ap4y <[email protected]>
Enable nested flag 'n' for C-style multi-line comments
---
swift-mode.el | 4 ++--
test/font-lock-tests.el | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/swift-mode.el b/swift-mode.el
index 24697d1..afc9574 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -563,8 +563,8 @@ You can send text to the REPL process from other buffers
containing source.
(modify-syntax-entry ?: "_" table)
;; Comments
- (modify-syntax-entry ?/ ". 124b" table)
- (modify-syntax-entry ?* ". 23" table)
+ (modify-syntax-entry ?/ ". 124b" table)
+ (modify-syntax-entry ?* ". 23n" table)
(modify-syntax-entry ?\n "> b" table)
;; Parenthesis, braces and brackets
diff --git a/test/font-lock-tests.el b/test/font-lock-tests.el
index d1ddafc..ed760d4 100644
--- a/test/font-lock-tests.el
+++ b/test/font-lock-tests.el
@@ -195,6 +195,8 @@ test will fail."
(check-face attributes/has-keyword-face/1 font-lock-keyword-face
"{{@IBAction}} func")
+(check-face comments/nested-multiline-comments-has-comments-face/1
font-lock-comment-face "/*/* text */{{*/}}")
+
(provide 'font-lock-tests)
;;; font-lock-tests.el ends here