Skip to content

Commit

Permalink
More #NOP kludges
Browse files Browse the repository at this point in the history
  • Loading branch information
daagar committed May 17, 2020
1 parent 55683ef commit 7c73916
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to the "Tintin++ VSCode" extension will be documented in thi


## [Unreleased]
## [0.0.4] - 2020-05-17
- More hacks to deal with #NOP lines

## [0.0.3] - 2020-05-16
### Changed
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ I highly suggest using a bracket colorizer as well, such as https://marketplace.
Install via:
```code --install-extension TinTinPlusPlus-<version>.vsix```

## Known Issues
There is no support for comment blocks like the following:
```
#nop {
This should be commented out
};
```

The workaround is to instead multiselect lines to comment and use vscode's `ctrl+/` command to multicomment the lines.

# TinTin++
Be sure to keep up with the latest TinTin++ updates at: https://tintin.mudhalla.net/index.php

Expand Down
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": "TinTinPlusPlus",
"displayName": "TinTin++",
"description": "Syntax highlighting for TinTin++",
"version": "0.0.3",
"version": "0.0.4",
"publisher": "daagar",
"repository": "https://github.com/daagar/tintin-vscode.git",
"engines": {
Expand Down
10 changes: 9 additions & 1 deletion syntaxes/tin.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,19 @@
<key>name</key>
<string>support.function</string>
</dict>
<dict>
<key>begin</key>
<string>^\s?#(NOP|nop)</string>
<key>end</key>
<string>($)</string>
<key>name</key>
<string>comment.line</string>
</dict>
<dict>
<key>begin</key>
<string>#(NOP|nop)</string>
<key>end</key>
<string>($|[\w\*\-\(\)\/\,\;\'+ ]+)</string>
<string>($|[[:word:]+[:space:]+\#\?\{\>\<\=\-\*\(\)\/\\\,\.\'\"\!\@\$\%\^\&]+)</string>
<key>name</key>
<string>comment.line</string>
</dict>
Expand Down

0 comments on commit 7c73916

Please sign in to comment.