Skip to content

Commit 668d1f9

Browse files
committed
Merge pull request #3 from Iristyle/hashparams
Improperly comments lines with parameters containing # in command mode
2 parents a0979fc + c70d4d5 commit 668d1f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Support/PowershellSyntax.JSON-tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
]
2424
},
2525
{
26-
"begin": "#",
26+
"begin": "(^|[^-\\])#",
2727
"end": "$",
2828
"name": "comment.line.powershell",
2929
"patterns": [

Support/PowershellSyntax.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</dict>
4646
<dict>
4747
<key>begin</key>
48-
<string>#</string>
48+
<string>(^|[^-\\])#</string>
4949
<key>end</key>
5050
<string>$</string>
5151
<key>name</key>

0 commit comments

Comments
 (0)