emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swift-mode 79622d7 123/496: Merge pull request #32 from ap


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 79622d7 123/496: Merge pull request #32 from ap4y/fix_nested_multi_line_comments
Date: Sun, 29 Aug 2021 11:33:20 -0400 (EDT)

branch: elpa/swift-mode
commit 79622d700874e1ec2807d3963ee19e93920ec78b
Merge: 6abb788 d77b2df
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]