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 8c54c18 commit 2a35cebCopy full SHA for 2a35ceb
grammars/viml.cson
@@ -28,9 +28,9 @@ firstLineMatch: """(?x)
28
|
29
30
# Emacs modeline, assuming a major mode for VimScript even exists
31
- -\\*-(?:(?:(?!mode\\s*:)[^:;]+:[^:;]+;)*\\s*mode\\s*:)?\\s*
32
- (Vim|VimL|VimScript)
33
- \\s*(?:;[^:;]+:[^:;]+?)*;?\\s*-\\*-
+ -\\*-(?:\\s*(?=[^:;\\s]+\\s*-\\*-)|(?:.*?[;\\s]|(?<=-\\*-))mode\\s*:\\s*)
+ (?:Vim|VimL|VimScript)
+ (?=[\\s;]|(?<![-*])-\\*-).*?-\\*-
34
)
35
"""
36
foldingStartMarker: "^(?:if|while|for|fu|function|augroup|aug)"
0 commit comments