Skip to content

Commit 3ceef38

Browse files
committed
Fix mishighlighted string as command when string contains '-'.
1 parent a0fa1c4 commit 3ceef38

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

MikrotikScript.YAML-tmLanguage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ repository:
12221222
- name: support.function.mikrotik-script
12231223
match: >
12241224
(?x)
1225-
\b(
1225+
\b(?<!-)(
12261226
Neighbor|
12271227
aaa|
12281228
accept\-filter|
@@ -1457,7 +1457,7 @@ repository:
14571457
wds|
14581458
web\-access|
14591459
wireless
1460-
)\b
1460+
)(?!-)\b
14611461
14621462
parameters-readonly:
14631463
patterns:
@@ -2616,7 +2616,7 @@ repository:
26162616
xauth\-login|
26172617
xauth\-password|
26182618
zone
2619-
)(?>!-)\b
2619+
)(?!-)\b
26202620
26212621
literal-boolean:
26222622
patterns:

0 commit comments

Comments
 (0)