summary refs log tree commit diff
path: root/bin/hilex/mdoc.l
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-12 21:40:11 -0500
committerJune McEnroe <june@causal.agency>2021-01-12 21:40:11 -0500
commit47940e2a528e30903c68abb6c0246cb86772d389 (patch)
tree63fe27534734a611699c1eeff82f2f0090febcfa /bin/hilex/mdoc.l
parentAdd htagml -i (diff)
downloadsrc-47940e2a528e30903c68abb6c0246cb86772d389.tar.gz
src-47940e2a528e30903c68abb6c0246cb86772d389.zip
Remove hacky tagging from hilex
God that makes the lexers so much simpler.
Diffstat (limited to '')
-rw-r--r--bin/hilex/mdoc.l11
1 files changed, 2 insertions, 9 deletions
diff --git a/bin/hilex/mdoc.l b/bin/hilex/mdoc.l
index 3dbba639..a31b6a2e 100644
--- a/bin/hilex/mdoc.l
+++ b/bin/hilex/mdoc.l
@@ -21,7 +21,7 @@
 #include "hilex.h"
 %}
 
-%s MacroLine Heading
+%s MacroLine
 
 %%
 
@@ -34,17 +34,12 @@
 
 ^".\\\"".* { return Comment; }
 
-<MacroLine,Heading>{
+<MacroLine>{
 	"\n" {
 		BEGIN(0);
 		return Normal;
 	}
 
-	S[hs] {
-		BEGIN(Heading);
-		return Keyword;
-	}
-
 	%[ABCDIJNOPQRTUV]|A[cdnopqrt]|B[cdfkloqtx]|Br[coq]|Bsx|C[dm]|D[1bcdloqtvx] |
 	E[cdfklmnorsvx]|F[acdlnortx]|Hf|I[cnt]|L[bikp]|M[st]|N[dmosx]|O[copstx] |
 	P[acfopq]|Q[cloq]|R[esv]|S[chmoqstxy]|T[an]|U[dx]|V[at]|X[cor] {
@@ -54,8 +49,6 @@
 	"\""([^""]|"\\\"")*"\"" { return String; }
 }
 
-<Heading>[^[:space:]].* { return IdentifierTag; }
-
 "\\"(.|"("..|"["[^]]*"]") { return String; }
 
 [^.\\""[:space:]]+ { return Normal; }