aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-08-30 20:09:20 +0200
committermetamuffin <metamuffin@disroot.org>2022-08-30 20:09:20 +0200
commitbd4aa1d7091ac004d99a7557084f8415f2b0edba (patch)
treebaa23df6c9b71292df377220141f8dafa7bb0f09 /code
parent91c6f1d8f5180cff54efb012e6c46ea465945cef (diff)
downloadmetamuffin-blog-bd4aa1d7091ac004d99a7557084f8415f2b0edba.tar
metamuffin-blog-bd4aa1d7091ac004d99a7557084f8415f2b0edba.tar.bz2
metamuffin-blog-bd4aa1d7091ac004d99a7557084f8415f2b0edba.tar.zst
fix makefile grammar
Diffstat (limited to 'code')
-rw-r--r--code/src/syntax_highlight/grammar.rs2
1 files changed, 1 insertions, 1 deletions
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", &["\\$@", "\\$<"]),
],