Skip to content

Commit

Permalink
Closes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
alefragnani committed Aug 20, 2016
1 parent 2f05a8b commit 5eaf654
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ Update two tags:

# Changelog

## Version 0.5.0

* **New** Updated Syntax definitions (basic types, hexadecimal values, operators, flow control and others)

## Version 0.4.1

* **Fix:** Toggle Line/Block Comment not working (issue [#8](https://github.com/alefragnani/vscode-language-pascal/issues/8))
Expand Down
Binary file modified images/vscode-pascal-format-code.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/vscode-pascal-snippets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/vscode-pascal-syntax.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pascal",
"displayName": "Language Pascal",
"description": "Pascal support for Visual Studio Code",
"version": "0.4.1",
"version": "0.5.0",
"publisher": "alefragnani",
"galleryBanner": {
"color": "#4682B4",
Expand Down
66 changes: 63 additions & 3 deletions syntaxes/pascal.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<array>
<dict>
<key>match</key>
<string>\b(?i:(absolute|abstract|all|and|and_then|array|as|asm|attribute|begin|bindable|case|class|const|contains|default|div|do|do|else|end|except|export|exports|external|far|file|finalization|finally|for|forward|generic|goto|if|implementation|implements|import|in|index|inherited|initialization|interface|interrupt|is|label|library|mod|module|name|near|nil|not|object|of|only|operator|or|or_else|otherwise|override|package|packed|pow|private|program|property|protected|public|published|qualified|raise|read|record|repeat|resident|requires|resourcestring|restricted|segment|set|shl|shr|specialize|stored|then|threadvar|to|try|type|unit|until|uses|value|var|view|virtual|dynamic|overload|reintroduce|while|with|write|xor))\b</string>
<string>\b(?i:(absolute|abstract|all|and_then|array|as|asm|attribute|begin|bindable|case|class|const|contains|default|div|else|end|except|export|exports|external|far|file|finalization|finally|forward|generic|goto|if|implements|import|in|index|inherited|initialization|interrupt|is|label|library|mod|module|name|near|not|object|of|on|only|operator|or_else|otherwise|override|package|packed|pow|private|program|protected|public|published|interface|implementation|qualified|read|record|resident|requires|resourcestring|restricted|segment|set|shl|shr|specialize|stored|then|threadvar|to|try|type|unit|until|uses|var|view|virtual|dynamic|overload|reintroduce|with|write|xor))\b</string>
<key>name</key>
<string>keyword.control.pascal</string>
<string>keyword.pascal</string>
</dict>
<dict>
<key>captures</key>
Expand Down Expand Up @@ -59,16 +59,76 @@
</dict>
</dict>
<key>match</key>
<string>\b(?i:(function|procedure|constructor|destructor))\b\s+(\w+(\.\w+)?)</string>
<string>\b(?i:(function|procedure|constructor|destructor|property|read|write))\b\s+(\w+(\.\w+)?)</string>
<key>name</key>
<string>meta.function.pascal</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(self|result))\b</string>
<key>name</key>
<string>token.variable</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(and|or))\b</string>
<key>name</key>
<string>keyword.operator.pascal</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(break|continue|exit|abort|while|do|for|raise|repeat|until))\b</string>
<key>name</key>
<string>keyword.control.pascal</string>
</dict>

<dict>
<key>begin</key>
<string>\{\$</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>warn-token</string>
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>name</key>
<string>warn-token</string>
</dict>

<dict>
<key>match</key>
<string>\b(?i:(ansichar|ansistring|boolean|byte|cardinal|char|comp|currency|double|dword|extended|file|integer|int64|longint|longword|nativeint|nativeuint|olevariant|pansichar|pchar|pwidechar|pointer|real|shortint|shortstring|single|smallint|string|uint64|variant|widechar|widestring|word|wordbool))\b</string>
<key>name</key>
<string>storage.support.type.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>match</key>
<string>\$[0-9a-fA-F]{1,16}\b</string>
<key>name</key>
<string>constant.numeric.pascal</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(true|false|nil))\b</string>
<key>name</key>
<string>constant.language.pascal</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(Assert))\b</string>
<key>name</key>
<string>error-token</string>
</dict>
<dict>
<key>begin</key>
<string>(^[ \t]+)?(?=--)</string>
Expand Down

0 comments on commit 5eaf654

Please sign in to comment.