From e3edf18503b3975ccec3b33c0cb9e7f0888bd031 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 25 Sep 2022 18:29:22 +0200 Subject: extend parser --- code/src/syntax_highlight/grammar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/src/syntax_highlight/grammar.rs') diff --git a/code/src/syntax_highlight/grammar.rs b/code/src/syntax_highlight/grammar.rs index 18ba9e2..0878b33 100644 --- a/code/src/syntax_highlight/grammar.rs +++ b/code/src/syntax_highlight/grammar.rs @@ -5,7 +5,7 @@ pub fn grammar_for(syntax: &str) -> &'static [(&'static str, &'static [&'static "keyword", &[ "fn", "pub", "async", "return", "if", "else", "let", "for", "in", "while", - "loop", "impl", "for", "trait", "struct", "enum", + "loop", "impl", "for", "trait", "struct", "enum", "dyn", ], ), ( -- cgit v1.2.3-70-g09d2