diff options
author | 2024-12-20 22:37:19 +0100 | |
---|---|---|
committer | 2024-12-20 21:37:19 +0000 | |
commit | 9ae0c7b3636365406b480b494dccc609ccba08b9 (patch) | |
tree | b6a205df8ff83acaff1745ff88885d9346ffef04 /vendor/github.com/ncruces/go-sqlite3/driver/whitespace.go | |
parent | [bugfix] Load instance-wide custom css in page stylesheets template (#3601) (diff) | |
download | gotosocial-9ae0c7b3636365406b480b494dccc609ccba08b9.tar.xz |
[chore] Update ncruces/go-sqlite3 to 0.21.3 (#3629)
This includes some additional locking fixes for the BSDs.
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/driver/whitespace.go')
-rw-r--r-- | vendor/github.com/ncruces/go-sqlite3/driver/whitespace.go | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/driver/whitespace.go b/vendor/github.com/ncruces/go-sqlite3/driver/whitespace.go deleted file mode 100644 index 8f45706f5..000000000 --- a/vendor/github.com/ncruces/go-sqlite3/driver/whitespace.go +++ /dev/null @@ -1,61 +0,0 @@ -package driver - -func notWhitespace(sql string) bool { - const ( - code = iota - slash - minus - ccomment - sqlcomment - endcomment - ) - - state := code - for _, b := range ([]byte)(sql) { - if b == 0 { - break - } - - switch state { - case code: - switch b { - case '/': - state = slash - case '-': - state = minus - case ' ', ';', '\t', '\n', '\v', '\f', '\r': - continue - default: - return true - } - case slash: - if b != '*' { - return true - } - state = ccomment - case minus: - if b != '-' { - return true - } - state = sqlcomment - case ccomment: - if b == '*' { - state = endcomment - } - case sqlcomment: - if b == '\n' { - state = code - } - case endcomment: - switch b { - case '/': - state = code - case '*': - state = endcomment - default: - state = ccomment - } - } - } - return state == slash || state == minus -} |