This file is indexed.

/usr/share/SuperCollider/HelpSource/lang-sc.js is in supercollider-common 1:3.8.0~repack-2.

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
PR.registerLangHandler(
    PR.createSimpleLexer(
    [
        /* whitespace */
        [PR.PR_PLAIN,       /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
        /* strings */
        [PR.PR_STRING,      /^"(?:[^\\"]|\\.)*(?:"|$)/, null, '"'],
    ],
    [
        /* char literal */
        [PR.PR_LITERAL,     /^\$(\\)?./],
        /* symbols */
        [PR.PR_ATTRIB_NAME, /^\\\w+/],
        [PR.PR_ATTRIB_NAME, /^'[^']+'/],
        [PR.PR_ATTRIB_VALUE, /^~\w+/],
        /* special variables */
        [PR.PR_TAG,         /^(?:super|thisFunctionDef|thisFunction|thisMethod|thisProcess|thisThread|this)\b/],
        /* special values */
        [PR.PR_KEYWORD,     /^(?:true|false|nil|inf)\b/],
        /* variable declarations */
        [PR.PR_DECLARATION, /^(?:var|classvar|const|arg)\b/],
//        [PR.PR_DECLARATION, /^\|/],
        /* class names */
        [PR.PR_TYPE,        /^\b([A-Z][A-Za-z_0-9]+)\b/],
        [PR.PR_COMMENT,     /^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/], //fixme: nested comments
        /* numbers */
        [PR.PR_LITERAL,     /^-?\d+r[\da-zA-Z]+(\.[\da-zA-Z]+)?/],
//        [PR.PR_LITERAL,     /^-?(?:(?:\d+(?:\.\d*)?)(?:e[+\-]?\d+)?)(pi)?|pi/],
        [PR.PR_LITERAL,     /^-?(?:(?:\d+(\.\d+)?)(?:e[+\-]?\d+)?(pi)?)|(?:pi\b)/],
        /* other stuff */
        [PR.PR_PLAIN, /^[a-z_]\w*/i],
//        [PR.PR_PUNCTUATION, /^[-.,;!?#$%&\|/+*<>=@()\[\]{}]/]
        [PR.PR_PUNCTUATION, /^[-.,;#()\[\]{}]/]
    ]),
    ['sc']);