summary refs log tree commit diff
path: root/bin/make.l
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-13 16:42:30 -0500
committerJune McEnroe <june@causal.agency>2021-01-13 16:42:30 -0500
commitf65d18f4f06e08cd2caa7743d2220e07f794cd79 (patch)
tree704709bb72b7234f0e0cc5f7653e6747baaf350a /bin/make.l
parentMove text "lexer" to hilex.c (diff)
downloadsrc-f65d18f4f06e08cd2caa7743d2220e07f794cd79.tar.gz
src-f65d18f4f06e08cd2caa7743d2220e07f794cd79.zip
Shorten hilex class names
Diffstat (limited to 'bin/make.l')
-rw-r--r--bin/make.l18
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/make.l b/bin/make.l
index 952c589d..eee150b9 100644
--- a/bin/make.l
+++ b/bin/make.l
@@ -22,7 +22,7 @@
 %}
 
 %s Assign
-%x Interp Shell
+%x Variable Shell
 
 ident [._[:alnum:]]+
 assign [+?:!]?=
@@ -55,7 +55,7 @@ operator [:!]|::
 }
 
 ^{ident}/[[:blank:]]*{assign} {
-	return Identifier;
+	return Ident;
 }
 
 {assign} {
@@ -73,24 +73,24 @@ operator [:!]|::
 
 ^"-"?include { return Macro; }
 
-{target} { return Identifier; }
+{target} { return Ident; }
 
 "#"([^\\\n]|"\\"[^\n]|"\\\n")* { return Comment; }
 
 <*>{
 	"$"("{"|"(") {
 		depth++;
-		BEGIN(Interp);
-		return Interpolation;
+		BEGIN(Variable);
+		return Subst;
 	}
-	"$". { return Interpolation; }
+	"$". { return Subst; }
 }
-<Interp>{
+<Variable>{
 	"}"|")" {
 		if (!--depth) BEGIN(pop);
-		return Interpolation;
+		return Subst;
 	}
-	[^${}()]+ { return Interpolation; }
+	[^${}()]+ { return Subst; }
 }
 
 .|\n { return Normal; }