Skip to content

Commit ee976d0

Browse files
committed
Fix comment block closing ]] leak
1 parent a420232 commit ee976d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Syntaxes/Lua.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@
698698
<key>begin</key>
699699
<string>(?&lt;=--\[\[)([^-]|\-(?!\]\]))*$</string>
700700
<key>while</key>
701-
<string>^[ \t]*-*(?!\]\])(?=([^-]|[-](?!\]\]))*$)</string>
701+
<string>^[ \t]*-*(?![^\r\n]*\]\])</string>
702702
<key>patterns</key>
703703
<array>
704704
<dict>

lua.tmLanguage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@
451451
},
452452
"comment_documentation_bracket": {
453453
"begin": "(?<=--\\[\\[)([^-]|\\-(?!\\]\\]))*$",
454-
"while": "^[ \\t]*-*(?!\\]\\])(?=([^-]|[-](?!\\]\\]))*$)",
454+
"while": "^[ \\t]*-*(?![^\\r\\n]*\\]\\])",
455455
"patterns": [
456456
{
457457
"include": "#emmydoc"

0 commit comments

Comments
 (0)