File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ class Go < Scanner
31
31
'nil' , 'iota' ,
32
32
'true' , 'false' ,
33
33
] # :nodoc:
34
+
35
+ PREDEFINED_FUNCTIONS = %w[
36
+ append cap close complex copy delete imag len
37
+ make new panic print println real recover
38
+ ] # :nodoc:
34
39
35
40
DIRECTIVES = [
36
41
'go_no_directive' , # Seems no directive concept in Go?
@@ -40,7 +45,8 @@ class Go < Scanner
40
45
add ( KEYWORDS , :keyword ) .
41
46
add ( PREDEFINED_TYPES , :predefined_type ) .
42
47
add ( DIRECTIVES , :directive ) .
43
- add ( PREDEFINED_CONSTANTS , :predefined_constant ) # :nodoc:
48
+ add ( PREDEFINED_CONSTANTS , :predefined_constant ) .
49
+ add ( PREDEFINED_FUNCTIONS , :predefined ) # :nodoc:
44
50
45
51
ESCAPE = / [rbfntv\n \\ '"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc:
46
52
UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc:
You can’t perform that action at this time.
0 commit comments