text/plain
*.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
[\\\"\'nrbtfav\?] | # escaped character
[0-7]{1,3} | # one, two, or three octal digits
x[0-9A-Fa-f]+ # 'x' followed by hex digits
)
^\s*#\s*
\%{preproc-start}
(include|import)\s*
(".*?"|<.*>)
\%{preproc-start}
(define|undef|error|pragma|ident|if(n?def)?|else|elif|endif|line|warning)
\b
L?"
"
\%{escaped-character}
L?'(\%{escaped-character}|.)'
(?<![\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\.])
package
import
func
type
var
asm
break
case
continue
default
do
else
enum
for
fortran
goto
if
return
sizeof
struct
switch
typedef
union
while
bool
uint8
uint16
uint32
uint64
int8
int16
int32
int64
float32
float64
byte
uint
int
float
uintptr
string
const
map
chan
nil
true
false