mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add support for regular expression data (#3441)
This commit is contained in:
committed by
Brandon Black
parent
d761658f8b
commit
e7b5e25bf8
19
samples/Regular Expression/modeline-emacs.regexp
Normal file
19
samples/Regular Expression/modeline-emacs.regexp
Normal file
@@ -0,0 +1,19 @@
|
||||
-\*-
|
||||
(?:
|
||||
\s*
|
||||
(?= [^:;\s]+ \s* -\*-)
|
||||
|
|
||||
(?:
|
||||
.*?[;\s]
|
||||
|
|
||||
(?<=-\*-)
|
||||
)
|
||||
mode\s*:\s*
|
||||
)
|
||||
([^:;\s]+)
|
||||
|
||||
(?=
|
||||
[\s;] | (?<![-*]) -\*-
|
||||
)
|
||||
.*?
|
||||
-\*-
|
||||
Reference in New Issue
Block a user