-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add pascal/delphi syntax highlighting support
- Loading branch information
Showing
9 changed files
with
695 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Permission to copy, use, modify, sell and distribute this | ||
software is granted. This software is provided "as is" without | ||
express or implied warranty, and with no claim as to its | ||
suitability for any purpose. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,240 @@ | ||
<?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>pas</string> | ||
<string>p</string> | ||
</array> | ||
<key>keyEquivalent</key> | ||
<string>^~P</string> | ||
<key>name</key> | ||
<string>Pascal</string> | ||
<key>patterns</key> | ||
<array> | ||
<dict> | ||
<key>match</key> | ||
<string>\b(?i:(absolute|abstract|all|and|and_then|array|as|asm|attribute|begin|bindable|case|class|const|constructor|destructor|div|do|downto|else|end|except|export|exports|external|far|file|finalization|finally|for|forward|generic|goto|helper|if|implementation|import|in|inherited|initialization|interface|interrupt|is|label|library|mod|module|name|near|nil|not|object|of|only|operator|or|or_else|otherwise|packed|pow|private|program|property|protected|public|published|qualified|record|repeat|resident|restricted|segment|set|specialize|shl|shr|then|to|try|type|unit|until|uses|value|var|view|virtual|while|with|xor))\b</string> | ||
<key>name</key> | ||
<string>keyword.control.pascal</string> | ||
</dict> | ||
<dict> | ||
<key>captures</key> | ||
<dict> | ||
<key>1</key> | ||
<dict> | ||
<key>name</key> | ||
<string>storage.type.prototype.pascal</string> | ||
</dict> | ||
<key>2</key> | ||
<dict> | ||
<key>name</key> | ||
<string>entity.name.function.prototype.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>match</key> | ||
<string>\b(?i:(function|procedure))\b\s+(\w+(\.\w+)?)(\(.*?\))?;\s*(?=(?i:attribute|forward|external))</string> | ||
<key>name</key> | ||
<string>meta.function.prototype.pascal</string> | ||
</dict> | ||
<dict> | ||
<key>captures</key> | ||
<dict> | ||
<key>1</key> | ||
<dict> | ||
<key>name</key> | ||
<string>storage.type.function.pascal</string> | ||
</dict> | ||
<key>2</key> | ||
<dict> | ||
<key>name</key> | ||
<string>entity.name.function.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>match</key> | ||
<string>\b(?i:(function|procedure))\b\s+(\w+(\.\w+)?)</string> | ||
<key>name</key> | ||
<string>meta.function.pascal</string> | ||
</dict> | ||
<dict> | ||
<key>match</key> | ||
<string>\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\b</string> | ||
<key>name</key> | ||
<string>constant.numeric.pascal</string> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>(^[ \t]+)?(?=--)</string> | ||
<key>beginCaptures</key> | ||
<dict> | ||
<key>1</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.whitespace.comment.leading.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>end</key> | ||
<string>(?!\G)</string> | ||
<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.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>end</key> | ||
<string>\n</string> | ||
<key>name</key> | ||
<string>comment.line.double-dash.pascal.one</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>(^[ \t]+)?(?=//)</string> | ||
<key>beginCaptures</key> | ||
<dict> | ||
<key>1</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.whitespace.comment.leading.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>end</key> | ||
<string>(?!\G)</string> | ||
<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.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>end</key> | ||
<string>\n</string> | ||
<key>name</key> | ||
<string>comment.line.double-slash.pascal.two</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>\(\*</string> | ||
<key>captures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.comment.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>end</key> | ||
<string>\*\)</string> | ||
<key>name</key> | ||
<string>comment.block.pascal.one</string> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>\{</string> | ||
<key>captures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.comment.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>end</key> | ||
<string>\}</string> | ||
<key>name</key> | ||
<string>comment.block.pascal.two</string> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>"</string> | ||
<key>beginCaptures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.string.begin.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>comment</key> | ||
<string>Double quoted strings are an extension and (generally) support C-style escape sequences.</string> | ||
<key>end</key> | ||
<string>"</string> | ||
<key>endCaptures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.string.end.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>name</key> | ||
<string>string.quoted.double.pascal</string> | ||
<key>patterns</key> | ||
<array> | ||
<dict> | ||
<key>match</key> | ||
<string>\\.</string> | ||
<key>name</key> | ||
<string>constant.character.escape.pascal</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>applyEndPatternLast</key> | ||
<integer>1</integer> | ||
<key>begin</key> | ||
<string>'</string> | ||
<key>beginCaptures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.string.begin.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>end</key> | ||
<string>'</string> | ||
<key>endCaptures</key> | ||
<dict> | ||
<key>0</key> | ||
<dict> | ||
<key>name</key> | ||
<string>punctuation.definition.string.end.pascal</string> | ||
</dict> | ||
</dict> | ||
<key>name</key> | ||
<string>string.quoted.single.pascal</string> | ||
<key>patterns</key> | ||
<array> | ||
<dict> | ||
<key>match</key> | ||
<string>''</string> | ||
<key>name</key> | ||
<string>constant.character.escape.apostrophe.pascal</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
</array> | ||
<key>scopeName</key> | ||
<string>source.pascal</string> | ||
<key>uuid</key> | ||
<string>F42FA544-6B1C-11D9-9517-000D93589AF6</string> | ||
</dict> | ||
</plist> |
Oops, something went wrong.