Skip to content

Commit

Permalink
add ability to use ':' in named args
Browse files Browse the repository at this point in the history
  • Loading branch information
KoNekoD authored Nov 22, 2024
1 parent b9e2b20 commit 70c3f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion named_args.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func rawState(l *sqlLexer) stateFn {
return singleQuoteState
case '"':
return doubleQuoteState
case '@':
case '@', ':':
nextRune, _ := utf8.DecodeRuneInString(l.src[l.pos:])
if isLetter(nextRune) || nextRune == '_' {
if l.pos-l.start > 0 {
Expand Down

0 comments on commit 70c3f3b

Please sign in to comment.