mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] owl-vision: syntax scripts, single quotes attributes and slot props highlight and switch below command
This commit adds the following: - Syntax builder scripts to make syntaxes easier to read and edit - Syntax highlight in single quote attributes - Syntax highlight for slot props - Basic syntax highlight for xpaths - Added `Switch Below` command This commit fixes the following: - Using `Switch Besides` or `Switch Below` does not open a new panel if one was already open - Fixed missing space in component's snippet indentation
This commit is contained in:
committed by
Géry Debongnie
parent
398df543fe
commit
34489a2494
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"injectionSelector": "L:source.js -comment",
|
||||
"injectionSelector": "L:source.js -comment -(string -meta.embedded)",
|
||||
"scopeName": "owl.template.inline",
|
||||
"patterns": [
|
||||
{
|
||||
@@ -12,16 +12,19 @@
|
||||
"contentName": "meta.embedded.block.xml",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.function.tagged-template.js owl-inline-template"
|
||||
"name": "entity.name.function.tagged-template.js"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.template.begin.js string.template.js"
|
||||
"name": "punctuation.definition.string.template.begin.js"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "string.js"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.template.end.js string.template.js"
|
||||
"name": "punctuation.definition.string.template.end.js"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
@@ -34,4 +37,4 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user