branch: elpa/swift-mode
commit 9757df9e49207071db853c92207334dadc1ec60e
Author: Daniel Martín <mardan...@yahoo.es>
Commit: taku0 <ta...@users.noreply.github.com>

    Improve regular expression to avoid false positives
---
 swift-mode-font-lock.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swift-mode-font-lock.el b/swift-mode-font-lock.el
index da32425..3e403f3 100644
--- a/swift-mode-font-lock.el
+++ b/swift-mode-font-lock.el
@@ -667,7 +667,7 @@ Excludes true, false, and keywords begin with a number 
sign.")
      'swift-mode:property-access-face)
 
     ;; Make negation chars easier to see
-    ("\\(?:^\\|[^[:alnum:]_]\\)\\(!+\\)[^=]"
+    ("\\(?:^\\|\\s-\\|\\s(\\|\\s>\\|[,:;]\\)\\(!+\\)[^=]"
      1
      'swift-mode:negation-char-face))
   "Swift mode keywords for Font Lock.")

Reply via email to