General highlighting of network rules #120
Labels
enhancement
New feature or request
Priority: P3
T: syntax highlighter
The issue is related to the syntax highlighting
Currently, the supported modifier names are in a predefined list, so for each new modifier, the syntax highlighter should be modified to support it properly. This is often a time-consuming process (GitHub Linguist is also updated quarterly). Furthermore, the current method tends to produce problematic cases, just consider the example below:
Show screenshot
Taking the above points into account, it would make sense to introduce a solution that generally supports the following syntaxes, thus solving the above problems.
Requirements:
,
that not preceded by\
).a-zA-Z
), numbers (0-9
), horizontal lines (-
) and underscores (_
). It may start with a number, for example3p
. Otherwise, the modifier name is invalid.=
, assign operator), the value should normally be tokenized as an unquoted string. If the assign operator is specified but the value is missing, the modifier is invalid.|
) should be highlighted in this case, because it is a control character:The text was updated successfully, but these errors were encountered: