<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main/lex.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-20 16:57:48 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-20 16:57:48 +0100
commit3cb886859e9b4df4ece183583dfd8b5ba7a59584 (patch)
treeae634d27d3fde1dbb7d5ac377f9aea80064e0a47 /main/lex.go
parent9bffe238bd97d1dc606c84f2dfc4c73c99b36eea (diff)
downloadstred-go-3cb886859e9b4df4ece183583dfd8b5ba7a59584.tar
Adds some shorthands for substituting the beginning and end of the path register
Diffstat (limited to 'main/lex.go')
-rw-r--r--main/lex.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/lex.go b/main/lex.go
index 2826b1e..ecb0d3d 100644
--- a/main/lex.go
+++ b/main/lex.go
@@ -179,7 +179,7 @@ func lexCommand(l *lexer) stateFunc {
case '}':
l.emit(TokenRBrace)
return lexCommand
- case 's', 'S':
+ case 's', 'S', 'f', 'F', 'l', 'L':
l.emit(TokenCommand)
return lexSubstitution
}