branch: elpa/swift-mode commit 79622d700874e1ec2807d3963ee19e93920ec78b Merge: 6abb788 d77b2df Author: Bozhidar Batsov <bozhi...@batsov.com> Commit: Bozhidar Batsov <bozhi...@batsov.com>
Merge pull request #32 from ap4y/fix_nested_multi_line_comments 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