🐞 fix(syntaxHighlighter): fix for gpio pins
This commit is contained in:
parent
90cd461cdf
commit
c150a20a32
|
@ -160,7 +160,7 @@ ace.define("ace/mode/klipper_config_highlight_rules",[], function(require, expor
|
||||||
caseInsensitive: true
|
caseInsensitive: true
|
||||||
}, {
|
}, {
|
||||||
token: "support.type",
|
token: "support.type",
|
||||||
regex: /[\^~!]*(?:z:)?[a-zA-Z]{1,2}\d{1,2}(?:\.\d{1,2})?/,
|
regex: /[\^~!]*(?:z:)?[a-zA-Z]{1,4}(?:gpio)?\d{1,2}(?:\.\d{1,2})?/,
|
||||||
caseInsensitive: true
|
caseInsensitive: true
|
||||||
}],
|
}],
|
||||||
"#config_line_start_gcode": [{
|
"#config_line_start_gcode": [{
|
||||||
|
@ -192,8 +192,8 @@ ace.define("ace/mode/klipper_config_highlight_rules",[], function(require, expor
|
||||||
}]
|
}]
|
||||||
}],
|
}],
|
||||||
"#config_line": [{
|
"#config_line": [{
|
||||||
token: ["variable.name", "variable.name"],
|
token: ["variable.name", "variable.name", "variable.name", "variable.name"],
|
||||||
regex: /(?!gcode|sensor_type|rpi:)(\w+)(\s*[:]\s*)/,
|
regex: /(?!gcode|sensor_type|rpi:)(\w+)(\s*[:]\s*\w+[:])|(?!gcode|sensor_type|rpi:)(\w+)(\s*[:]\s*)/,
|
||||||
push: [{
|
push: [{
|
||||||
token: "text",
|
token: "text",
|
||||||
regex: /$/,
|
regex: /$/,
|
||||||
|
|
Loading…
Reference in New Issue