From 8eee177c6ce8a0575cc36df2d80f5dc177316fa6 Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Tue, 30 Mar 2021 00:51:41 +0200 Subject: [PATCH] image fix, grammar fix --- public/grammars/gcode.tmLanguage.json | 23 ++++++++++++++----- .../panels/Settings/ConfigFilesPanel.vue | 4 ++-- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/public/grammars/gcode.tmLanguage.json b/public/grammars/gcode.tmLanguage.json index 1a353462..1e5a1598 100644 --- a/public/grammars/gcode.tmLanguage.json +++ b/public/grammars/gcode.tmLanguage.json @@ -11,8 +11,23 @@ } ], "repository": { + "single_line_comment": { + "patterns": [ + { + "name": "comment.line.number-sign", + "match": "#(.*)$" + }, + { + "name": "comment.line.gcode", + "match": ";(.*)$" + } + ] + }, "keywords": { "patterns": [ + { + "include": "#single_line_comment" + }, { "name": "constant.gcode", "match": "[nN][ \\t]*[0-9\\.]+" @@ -27,11 +42,7 @@ }, { "name": "string.xcode.gcode", - "match": "(?i)[XAUI][ \\t]*[\\-\\+]?[0-9\\.]+" - }, - { - "name": "comment.type.ycode.gcode", - "match": "(?i)[YBVJ][ \\t]*[\\-\\+]?[0-9\\.]+" + "match": "(?i)[XAUIYBVJ][ \\t]*[\\-\\+]?[0-9\\.]+" }, { "name": "support.function.mcode.gcode", @@ -43,7 +54,7 @@ }, { "name": "variable.parameter.pqecode.gcode", - "match": "[pPqQeE][ \\t]*[0-9][0-9\\.]*" + "match": "[pPqQeE][ \\t]*\\-?\\.?[0-9][0-9\\.]*" }, { "name": "string.control.mcode.gcode", diff --git a/src/components/panels/Settings/ConfigFilesPanel.vue b/src/components/panels/Settings/ConfigFilesPanel.vue index d6e9b42a..696a42eb 100644 --- a/src/components/panels/Settings/ConfigFilesPanel.vue +++ b/src/components/panels/Settings/ConfigFilesPanel.vue @@ -169,8 +169,8 @@ mdi-close -
- image +
+ image