From f726a54f27dab458561e8a3ffc01b17d804e4483 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 8 Sep 2023 08:37:48 -0400 Subject: [PATCH] detect and highlight strings in more places --- tools/lammps-gui/highlighter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lammps-gui/highlighter.cpp b/tools/lammps-gui/highlighter.cpp index 611eefa839..d6c1102285 100644 --- a/tools/lammps-gui/highlighter.cpp +++ b/tools/lammps-gui/highlighter.cpp @@ -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