Skip to content

Commit

Permalink
Merge pull request #10 from atomiechen/dev
Browse files Browse the repository at this point in the history
bump version to 0.2.1
  • Loading branch information
atomiechen authored Aug 10, 2024
2 parents 8e5125d + 4b7caf8 commit 68057ac
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 21 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to the "vscode-handyllm" extension will be documented in thi
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.


## [0.2.1] - 2024-08-10

### Added

- highlight extra property keywords (`tool` and `array`) for convenience
- add `, * and _ to surrounding pairs


## [0.2.0] - 2024-07-05

### Changed
Expand Down
5 changes: 4 additions & 1 deletion language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
["'", "'"],
["`", "`"],
["*", "*"],
["_", "_"]
]
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": "https://github.com/atomiechen/vscode-handyllm"
},
"private": true,
"version": "0.2.0",
"version": "0.2.1",
"engines": {
"vscode": "^1.66.0"
},
Expand Down
42 changes: 25 additions & 17 deletions syntaxes/hprompt.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
]
},
"block_yaml": {
"begin": "^(\\$\\w+\\$)[^\\S\\r\\n]*({[^{}]*?type\\s*=[^{}]*})[^\\S\\r\\n]*$",
"begin": "^(\\$\\w+\\$)[^\\S\\r\\n]*({[^{}]*?(?:type\\s*=|(?<=\\s|{)(?:tool|array)(?=\\s|}))[^{}]*})[^\\S\\r\\n]*$",
"end": "(?=^(\\$\\w+\\$)[^\\S\\r\\n]*({[^{}]*?})?[^\\S\\r\\n]*$)",
"beginCaptures": {
"0": {
Expand Down Expand Up @@ -99,25 +99,33 @@
]
},
"extra_properties": {
"match": "(\\w+)\\s*=\\s*(\"[^\"]*\"|\\'[^\\']*\\')",
"captures": {
"1": {
"name": "entity.other.attribute-name"
},
"2": {
"name": "string.quoted",
"patterns": [
{
"match": "(?<=\")[^\"]*(?=\")",
"name": "string.quoted.double"
"patterns": [
{
"match": "(\\w+)\\s*=\\s*(\"[^\"]*\"|\\'[^\\']*\\')",
"captures": {
"1": {
"name": "entity.other.attribute-name"
},
{
"match": "(?<=')[^']*(?=')",
"name": "string.quoted.single"
"2": {
"name": "string.quoted",
"patterns": [
{
"match": "(?<=\")[^\"]*(?=\")",
"name": "string.quoted.double"
},
{
"match": "(?<=')[^']*(?=')",
"name": "string.quoted.single"
}
]
}
]
}
},
{
"match": "(?<=\\s|{)(tool|array)(?=\\s|})",
"name": "keyword.other"
}
}
]
},
"plain_text": {
"match": ".",
Expand Down

0 comments on commit 68057ac

Please sign in to comment.