From 011f50b8051522333b64aaf6d7a3d7e18c01d8c7 Mon Sep 17 00:00:00 2001 From: Stian Valle Date: Tue, 11 Jan 2022 13:56:50 +0100 Subject: [PATCH] Syntax: Remove include to js syntax The js syntax went into a block mode, and didn't come come back out to the qml syntax. Removed the include to the js syntax and implemented some poor-mans substitutes for strings and numbers. --- syntaxes/qml.tmLanguage | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/syntaxes/qml.tmLanguage b/syntaxes/qml.tmLanguage index 3a174ec..fca9dda 100644 --- a/syntaxes/qml.tmLanguage +++ b/syntaxes/qml.tmLanguage @@ -305,8 +305,20 @@ variable.parameter - include - source.js + comment + Double quoted strings + match + "([^"\\]*(\\.[^"\\]*)*)"|\'([^\'\\]*(\\.[^\'\\]*)*)\' + name + string.quoted.double.qml + + + comment + Poor man's implementation of number literals + match + \d*\.?\d+ + name + constant.numeric.decimal.qml scopeName