We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ab8ff commit 3304c0fCopy full SHA for 3304c0f
swift-mode-font-lock.el
@@ -473,7 +473,15 @@ The predicate MATCH-P is called with two arguments:
473
- the limit of search functions."
474
(let ((result nil))
475
(while (and
476
- (< (point) limit)
+ (progn
477
+ (dolist (key '(swift-mode:comment
478
+ swift-mode:string
479
+ swift-mode:regexp))
480
+ (when (get-text-property (point) key)
481
+ (goto-char (next-single-property-change
482
+ (point)
483
+ key nil limit))))
484
+ (< (point) limit))
485
(not result)
486
(re-search-forward "\\_<\\(?:\\sw\\|\\s_\\)+\\_>" limit t))
487
(when (save-excursion
0 commit comments