diff options
author | metamuffin <metamuffin@disroot.org> | 2022-08-30 20:09:20 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-08-30 20:09:20 +0200 |
commit | bd4aa1d7091ac004d99a7557084f8415f2b0edba (patch) | |
tree | baa23df6c9b71292df377220141f8dafa7bb0f09 | |
parent | 91c6f1d8f5180cff54efb012e6c46ea465945cef (diff) | |
download | metamuffin-blog-bd4aa1d7091ac004d99a7557084f8415f2b0edba.tar metamuffin-blog-bd4aa1d7091ac004d99a7557084f8415f2b0edba.tar.bz2 metamuffin-blog-bd4aa1d7091ac004d99a7557084f8415f2b0edba.tar.zst |
fix makefile grammar
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | code/src/syntax_highlight/grammar.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b80cd42 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/code/target +/content/out diff --git a/code/src/syntax_highlight/grammar.rs b/code/src/syntax_highlight/grammar.rs index aa4008a..82ae243 100644 --- a/code/src/syntax_highlight/grammar.rs +++ b/code/src/syntax_highlight/grammar.rs @@ -38,7 +38,7 @@ pub fn grammar_for(syntax: &str) -> &'static [(&'static str, &'static [&'static // makefile doesnt really match the token-kinds, i'll just use something that looks goo "makefile" => &[ ("comment", &["(?m)(#.*)$"]), - ("literal", &[".+:"]), + ("literal", &[".+: "]), ("macro", &["\\$\\(\\w+\\)"]), ("type", &["\\$@", "\\$<"]), ], |