aboutsummaryrefslogtreecommitdiff
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
parent91c6f1d8f5180cff54efb012e6c46ea465945cef (diff)
downloadmetamuffin-blog-bd4aa1d7091ac004d99a7557084f8415f2b0edba.tar
metamuffin-blog-bd4aa1d7091ac004d99a7557084f8415f2b0edba.tar.bz2
metamuffin-blog-bd4aa1d7091ac004d99a7557084f8415f2b0edba.tar.zst
fix makefile grammar
-rw-r--r--.gitignore2
-rw-r--r--code/src/syntax_highlight/grammar.rs2
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", &["\\$@", "\\$<"]),
],