This file is indexed.

/usr/share/highlight/langDefs/go.lang is in highlight-common 3.18-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
-- Language definition generated by lang2to3

Description="Go"

Keywords={
  { Id=1,
    List={"break", "default", "func", "interface", "select", "case", "defer", "go", "map", "struct", "chan", "else", "goto", "package", "switch", "const", "fallthrough", "if", "range", "type", "continue", "for", "import", "return", "var"},
  },
  { Id=2,
    List={"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", "printlnr"},
  },
  { Id=4,
    Regex=[[(\w+)\s*\(]],
  },
}

--# raw strings ` not implemented yet
Strings={
  Delimiter=[["|'|`]],
  Escape=[=[ \\\d{3}|\\x[[:xdigit:]]{2}|\\u[[:xdigit:]]{4}|\\U[[:xdigit:]]{8}|\\[ntvbrfa\\\?'"] ]=],
  Interpolation=[[ %\w ]],
}

IgnoreCase=false

Comments={
  { Block=false,
    Delimiter= { [[//]] },
  },
  { Block=true,
    Nested=false,
    Delimiter= { [[\/\*]],[[\*\/]],}
  }
}

Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\^]]