detect and highlight strings in more places

This commit is contained in:
Axel Kohlmeyer
2023-09-08 08:37:48 -04:00
parent ecc68c2f0c
commit f726a54f27

View File

@ -41,7 +41,7 @@ Highlighter::Highlighter(QTextDocument *parent) :
isSetup1(
QStringLiteral("^\\s*(min_style|run_style|timestep|suffix|plugin|comm_modify|comm_style|"
"package|reset_timestep|dump_modify|fix_modify|compute_modify)\\s+(\\S+)")),
isVariable(QStringLiteral("\\s+(\\$[a-z]|\\${[^} ]+}|\\$\\(\\S+\\))")),
isVariable(QStringLiteral("(\\$[a-z]|\\${[^} ]+}|\\$\\(\\S+\\))")),
isReference(
QStringLiteral("\\s+(c_\\S+|C_\\S+|f_\\S+|F_\\S+|i_\\S+|i2_\\S+|d_\\S+|d2_\\S+|v_\\S+)")),
isNumber1(QStringLiteral("(^|\\s+)[-+]?[0-9:*]+")), // integer and integer ranges