Skip to content

Commit bcb2e2c

Browse files
authored
AutoIt: Allow hyphen in directive (#3308)
1 parent deb3a97 commit bcb2e2c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

components/prism-autoit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Prism.languages.autoit = {
1919
}
2020
},
2121
'directive': {
22-
pattern: /(^[\t ]*)#\w+/m,
22+
pattern: /(^[\t ]*)#[\w-]+/m,
2323
lookbehind: true,
2424
alias: 'keyword'
2525
},

components/prism-autoit.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
#NoTrayIcon
22
#OnAutoItStartRegister "Example"
3+
#include-once
4+
#include <MsgBoxConstants.au3>
35

46
----------------------------------------------------
57

68
[
79
["directive", "#NoTrayIcon"],
8-
["directive", "#OnAutoItStartRegister"], ["string", ["\"Example\""]]
10+
["directive", "#OnAutoItStartRegister"], ["string", ["\"Example\""]],
11+
["directive", "#include-once"],
12+
["directive", "#include"], ["url", "<MsgBoxConstants.au3>"]
913
]
1014

1115
----------------------------------------------------
1216

13-
Checks for directives.
17+
Checks for directives.

0 commit comments

Comments
 (0)