text/x-go
*.go
//
/*
*/
\%\%|\%
(?:[1-9][0-9]*\$)? # argument
[#0\-\ \+\'I]* # flags
(?:[1-9][0-9]*|\*)? # width
(?:\.\-?(?:[0-9]+|\*))? # precision
(?:hh|ll|[hlLqjzt])? # length modifier
[diouxXeEfFgGaAcsCSpnm] # conversion specifier
\\( # leading backslash
[abfnrtv\\] | # escaped character
[0-7]{3} | # three octal digits
x[0-9A-Fa-f]{2} | # 'x' followed by exactly two hex digits
u[0-9A-Fa-f]{4} | # 'u' followed by exactly four hex digits
U[0-9A-Fa-f]{8} # 'U' followed by exactly eight hex digits
)
\\ # leading backslash
[^abfnrtv\\] # escaped characters other than these
\\\"
\\\'
:=
`
`
"
"
\%{escaped-character}
\%{escaped-character-string-lit}
\%{invalid-escapes}
[^"][ ]*$
'(\%{escaped-character} | \%{escaped-character-char-lit} | [^'])'
''|'[;]?$
'
'
([^'][^']+)
(?<![\w\.])
((\.[0-9]+ | [0-9]+\.[0-9]*) ([Ee][+-]?[0-9]*)? |
([0-9]+[Ee][+-]?[0-9]*))
[fFlL]?
(?![\w\.])
(?<![\w\.])
0[xX][a-fA-F0-9]+[uUlL]*
(?![\w\.])
(?<![\w\.])
0[0-7]+[uUlL]*
(?![\w\.])
(?<![\w\.])
[0-9]+[uUlL]*
(?![\w\.])
break
case
chan
const
continue
default
defer
else
fallthrough
for
func
go
if
import
interface
map
package
range
return
select
struct
switch
type
var
goto
bool
byte
float32
float64
int8
int16
int32
int64
string
uint8
uint16
uint32
uint64
float
int
uint
uintptr
true
false
iota
nil
cap
close
closed
len
make
new
panic
panicln
print
println