diff --git a/editor.c b/editor.c index f4a6309..0f1affb 100644 --- a/editor.c +++ b/editor.c @@ -2180,7 +2180,7 @@ static void _editor_init_syntaxes(editor_t *editor) { { "`([^`\\\\]|\\\\.)*`", NULL, TB_YELLOW | TB_BOLD, TB_DEFAULT }, { "/\\*", "\\*/", TB_CYAN, TB_DEFAULT }, { "//.*$", NULL, TB_CYAN, TB_DEFAULT }, - { "^\\s*#( .*|)$", NULL, TB_CYAN, TB_DEFAULT }, + { "(?<=\\s)#\\s.*$", NULL, TB_CYAN, TB_DEFAULT }, { "^#!/.*$", NULL, TB_CYAN, TB_DEFAULT }, { "[(){}<>\\[\\].,;:?!+=/\\\\%^*-]", NULL, TB_RED | TB_BOLD, TB_DEFAULT }, { "(?$tmpf <<"EOD" +aaa "bbb" // ccc "ccc" +aaa "bbb" # ccc "ccc" +EOD +extra_opts=(-yy $tmpf) +macro='' +declare -A expected +declare -A not_expected +# a==97 b==98 c==99 +expected[style_a]='