Skip to content

Commit

Permalink
upgrade nimble and nim highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Jun 23, 2023
1 parent 694a7e1 commit 5ddc22a
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ Official VS Code plugin for use HappyX
HappyX provides code snippets for `components`, `mounts`, `request models` and other constructions


![Preview](https://github.com/HapticX/hpx-vs-code/blob/master/images/preview.gif)
![Preview](images/preview.gif)

2 changes: 1 addition & 1 deletion happyx.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "3.4.2"
version = "3.5.0"
author = "HapticX"
description = "HappyX"
license = "MIT"
Expand Down
9 changes: 8 additions & 1 deletion icons/hpx_icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@
},
"nimja_template": {
"iconPath": "./nimja.svg"
},
"nim_config": {
"iconPath": "./settings.svg"
}
},
"fileExtensions": {
"nim": "nim_lang",
"nimble": "nim_lang",
"nimja": "nimja_template"
"nimja": "nimja_template",
"nim.cfg": "nim_config"
},
"fileNames": {
"nim.cfg": "nim_config"
}
}
1 change: 1 addition & 0 deletions icons/settings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "happyx",
"displayName": "HappyX",
"description": "HappyX web framework for Visual Studio Code",
"version": "3.4.2",
"version": "3.5.0",
"publisher": "HapticX",
"license": "MIT",
"icon": "logo.png",
Expand Down Expand Up @@ -57,7 +57,11 @@
"nimble"
],
"extensions": [
".nimble"
".nimble",
".nim.cfg"
],
"filenames": [
"nim.cfg"
],
"configuration": "./configurations/nimble-configuration.json"
},
Expand Down
12 changes: 6 additions & 6 deletions syntaxes/nim.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,22 @@
"patterns": [
{
"name": "entity.name.class.nim",
"match": "(?<=\\{[a-zA-Z][a-zA-Z0-9_]*(:[a-zA-Z][a-zA-Z0-9_]*)?\\[)m(?=\\])"
"match": "(?<=\\{[a-zA-Z][a-zA-Z0-9_]*\\??(:[a-zA-Z][a-zA-Z0-9_]*)?\\[)m(?=\\])"
}, {
"name": "entity.name.class.nim",
"match": "(?<=\\$[a-zA-Z][a-zA-Z0-9_]*(:[a-zA-Z][a-zA-Z0-9_]*)?\\[)m(?=\\])"
"match": "(?<=\\$[a-zA-Z][a-zA-Z0-9_]*\\??(:[a-zA-Z][a-zA-Z0-9_]*)?\\[)m(?=\\])"
}, {
"name": "entity.name.class.nim",
"match": "(?<=\\$[a-zA-Z][a-zA-Z0-9_]*:)[a-zA-Z][a-zA-Z0-9_]*"
"match": "(?<=\\$[a-zA-Z][a-zA-Z0-9_]*\\??:)[a-zA-Z][a-zA-Z0-9_]*"
}, {
"name": "entity.name.class.nim",
"match": "(?<=\\{[a-zA-Z][a-zA-Z0-9_]*:)[a-zA-Z][a-zA-Z0-9_]*"
"match": "(?<=\\{[a-zA-Z][a-zA-Z0-9_]*\\??:)[a-zA-Z][a-zA-Z0-9_]*"
}, {
"name": "entity.name.function.nim",
"match": "\\$[a-zA-Z][a-zA-Z0-9_]*"
"match": "\\$[a-zA-Z][a-zA-Z0-9_]*\\??"
}, {
"name": "entity.name.function.nim",
"match": "(?<=\\{)[a-zA-Z][a-zA-Z0-9_]*"
"match": "(?<=\\{)[a-zA-Z][a-zA-Z0-9_]*\\??"
}, {
"name": "entity.name.function.nim",
"match": "<[a-zA-Z][a-zA-Z0-9_]*>"
Expand Down
5 changes: 4 additions & 1 deletion syntaxes/nimble.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"name": "Nimble",
"scopeName": "source.nimble",
"patterns": [
{"include": "#keywords"},
{"include": "#strings"},
{"include": "#keywords"},
{"include": "#comments"}
],
"repository": {
Expand All @@ -13,6 +13,9 @@
{
"name": "markup.bold.nimble",
"match": "\\b(name|version|author|description|license|requires)\\b"
}, {
"name": "keyword.control.nimble",
"match": "(?<=:\\s*).*?$"
}, {
"name": "markup.changed.nimble",
"match": "\\b(skipDirs|skipFiles|installDirs|installFiles|installExt|bin|namedBin|srcDir|binDir|backend)\\b"
Expand Down

0 comments on commit 5ddc22a

Please sign in to comment.