mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Insert implicit semicolons.
This commit is contained in:
1 parent
a91ae8cdbf
commit
21c6c34d92
2 files changed
+21
-3
No files matched your search
+10
-1
@@ -116,7 +116,16 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
var operators = [256]ID{
|
||||
var builtInsImplicitSemicolons = [256]bool{
|
||||
IDCloseParen: true,
|
||||
IDCloseBracket: true,
|
||||
IDCloseCurly: true,
|
||||
|
||||
// TODO: break, continue, fallthrough, return, a la Go.
|
||||
}
|
||||
|
||||
// squiggles are built-in tokens that aren't alpha-numeric.
|
||||
var squiggles = [256]ID{
|
||||
'(': IDOpenParen,
|
||||
')': IDCloseParen,
|
||||
'[': IDOpenBracket,
|
||||
|
||||
Reference in new issue
Block a user