Skip to content

Commit

Permalink
Fix string highlighting
Browse files Browse the repository at this point in the history
fixes #5
  • Loading branch information
Rudolf Schlatte committed Jul 11, 2023
1 parent dc12771 commit c1e258a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
5 changes: 5 additions & 0 deletions abs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

### Added

- Expressions inside template strings are now colored distrinctly from the
surrounding string content.

### Changed

### Removed

### Fixed

- Strings and template strings are now colored properly. (#5)

## [0.0.5]

### Added
Expand Down
9 changes: 7 additions & 2 deletions abs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ an active object modeling language.

## Features

Currently this extension provides only syntax highlighting.
This extension provides syntax highlighting and support for compiling an ABS
file from inside the editor.

## Release Notes

### 0.0.5

- Add initial support for compiling an ABS file.

### 0.0.4

Add support for snippets.
- Add support for snippets.

### 0.0.3

Expand Down
15 changes: 12 additions & 3 deletions abs/syntaxes/abs.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
}
]
},
"string": {
"strings": {
"patterns": [
{
"include": "#qstring-double"
Expand All @@ -93,9 +93,14 @@
"2": {
"name": "invalid.illegal.newline.abs"
}
}
},
"patterns": [
{
"name": "constant.character.escape.abs",
"match": "\\\\."
}
]
},

"template": {
"contentName": "string.template.abs",
"begin": "`",
Expand All @@ -111,6 +116,10 @@
}
},
"patterns": [
{
"name": "constant.character.escape.abs",
"match": "\\\\\\$|\\\\`"
},
{
"include": "#template-substitution-element"
}
Expand Down

0 comments on commit c1e258a

Please sign in to comment.