Skip to content

Commit

Permalink
use syn_generic for .hh files
Browse files Browse the repository at this point in the history
  • Loading branch information
adsr committed May 3, 2020
1 parent 7488091 commit 1296794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1829,7 +1829,7 @@ static int _editor_add_macro_by_str(editor_t *editor, char *str) {

// Init built-in syntax map
static void _editor_init_syntaxes(editor_t *editor) {
_editor_init_syntax(editor, NULL, "syn_generic", "\\.(c|cc|cpp|h|hpp|php|py|rb|erb|sh|pl|go|js|java|jsp|lua|rs|zig)$", -1, -1, (srule_def_t[]){
_editor_init_syntax(editor, NULL, "syn_generic", "\\.(c|cc|cpp|h|hh|hpp|php|py|rb|erb|sh|pl|go|js|java|jsp|lua|rs|zig)$", -1, -1, (srule_def_t[]){
{ "(?<![\\w%@$])("
"abstract|alias|alignas|alignof|and|and_eq|arguments|array|as|asm|"
"assert|auto|base|begin|bitand|bitor|bool|boolean|break|byte|"
Expand Down

0 comments on commit 1296794

Please sign in to comment.