Skip to content

Instantly share code, notes, and snippets.

@Sainan
Last active March 23, 2023 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sainan/dd35d23ffe36fc5713ad97c3f9437cc5 to your computer and use it in GitHub Desktop.
Save Sainan/dd35d23ffe36fc5713ad97c3f9437cc5 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>lua</string>
</array>
<key>name</key>
<string>Bug</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(^[ \t]+)?(?=--)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.whitespace.comment.leading.lua</string>
</dict>
</dict>
<key>end</key>
<string>(?!\G)((?!^)[ \t]+\n)?</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.whitespace.comment.trailing.lua</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>--\[(=*)\[</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.begin.lua</string>
</dict>
</dict>
<key>end</key>
<string>\]\1\]</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.end.lua</string>
</dict>
</dict>
<key>name</key>
<string>comment.block.lua</string>
</dict>
<dict>
<key>begin</key>
<string>--</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.lua</string>
</dict>
</dict>
<key>end</key>
<string>\n</string>
<key>name</key>
<string>comment.line.double-dash.lua</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|function|local|in|)\b</string>
<key>name</key>
<string>keyword.control.lua</string>
</dict>
</array>
<key>scopeName</key>
<string>source.lua</string>
<key>uuid</key>
<string>39640FE2-5354-4838-B02A-712D069BA69A</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment