mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
Berry updated syntax highlighting plugin for VSCode (#19123)
This commit is contained in:
parent
0c0ca82198
commit
ca8ec6a006
@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
|
||||
- ESP32 shutter driver support up to 16 shutters (#18295)
|
||||
- Configuration backup and restore now backup and restore ``.xdrvsetXXX`` files too (#18295)
|
||||
- Berry extend `range(lower, upper, incr)` to arbitrary increment
|
||||
- Berry updated syntax highlighting plugin for VSCode
|
||||
|
||||
### Fixed
|
||||
|
||||
|
@ -4,4 +4,5 @@ All notable changes to the "none" extension will be documented in this file.
|
||||
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
|
||||
|
||||
## [Unreleased]
|
||||
- Initial release
|
||||
- Initial release
|
||||
- add support for f-strings, `_class` and indent on `do`
|
@ -26,7 +26,7 @@
|
||||
["'", "'"]
|
||||
],
|
||||
"indentationRules": {
|
||||
"increaseIndentPattern": "(^((\\s*(class|while|for|if|elif|else|try|except))|(.*\\bdef))\\b((?!\\b(end)\\b).)*)$",
|
||||
"increaseIndentPattern": "(^((\\s*(class|while|for|if|elif|else|try|except|do))|(.*\\bdef))\\b((?!\\b(end)\\b).)*)$",
|
||||
"decreaseIndentPattern": "^\\s*((\\b(elif|else|except|end)\\b)|(\\)))"
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
@ -2,7 +2,7 @@
|
||||
"name": "berry",
|
||||
"displayName": "Berry Script Language",
|
||||
"description": "A small embedded script language.",
|
||||
"version": "0.1.0",
|
||||
"version": "1.1.0",
|
||||
"publisher": "skiars",
|
||||
"engines": {
|
||||
"vscode": "^1.15.1"
|
@ -44,11 +44,55 @@
|
||||
"patterns": [
|
||||
{
|
||||
"name": "string.quoted.double.berry",
|
||||
"match": "\"(\\\\.|[^\"])*\""
|
||||
"begin": "(\"|')",
|
||||
"end": "\\1",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.berry",
|
||||
"match": "\\\\."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.single.berry",
|
||||
"match": "'(\\\\.|[^'])*'"
|
||||
"name": "string.quoted.other.berry",
|
||||
"begin": "f(\"|')",
|
||||
"end": "\\1",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.berry",
|
||||
"match": "\\\\."
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.other.berry",
|
||||
"match": "\\{\\{[^\\}]*\\}\\}"
|
||||
},
|
||||
{
|
||||
"name": "keyword.other.unit.berry",
|
||||
"begin": "\\{",
|
||||
"end": "\\}",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#keywords"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#identifier"
|
||||
},
|
||||
{
|
||||
"include": "#operator"
|
||||
},
|
||||
{
|
||||
"include": "#member"
|
||||
},
|
||||
{
|
||||
"include": "#function"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
Loading…
x
Reference in New Issue
Block a user