Skip to content

Commit 08076f3

Browse files
committed
[lua] "goto" missing in Lua syntax highlighting microsoft#942
1 parent e39c3f9 commit 08076f3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/lua/syntaxes/Lua.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
</dict>
244244
<dict>
245245
<key>match</key>
246-
<string>\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in)\b</string>
246+
<string>\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|function|local|in)\b</string>
247247
<key>name</key>
248248
<string>keyword.control.lua</string>
249249
</dict>

src/vs/editor/standalone-languages/lua.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export var language = <ILanguage> {
1818

1919
keywords: [
2020
'and', 'break', 'do', 'else', 'elseif',
21-
'end', 'false', 'for', 'function', 'if',
21+
'end', 'false', 'for', 'function', 'goto', 'if',
2222
'in', 'local', 'nil', 'not', 'or',
2323
'repeat', 'return', 'then', 'true', 'until',
2424
'while'

0 commit comments

Comments
 (0)