Added discussion feature to site.
[Assignment-Trapper.git] / sh_makefile.js
blob83cb374965095ff55b8c754e628a2b4957626385
1 if (! this.sh_languages) {
2 this.sh_languages = {};
4 sh_languages['makefile'] = [
7 /^[a-zA-Z0-9_-]+[\s]*=/g,
8 'sh_type',
9 -1
12 /^\.[a-zA-Z0-9_-]+[\s]*:|@(?:.+)@/g,
13 'sh_preproc',
17 /^(?:[A-Za-z0-9_.\s-])+:/g,
18 'sh_symbol',
22 /%[a-zA-Z0-9_.-]+:%[a-zA-Z0-9_.-]+/g,
23 'sh_string',
27 /(?:[A-Za-z0-9_-]*)\.(?:[A-Za-z0-9_-]+)/g,
28 'sh_normal',
32 /\b(?:import)\b/g,
33 'sh_preproc',
37 /\b[+-]?(?:(?:0x[A-Fa-f0-9]+)|(?:(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?))u?(?:(?:int(?:8|16|32|64))|L)?\b/g,
38 'sh_number',
42 /\\"|\\'/g,
43 'sh_normal',
47 /"/g,
48 'sh_string',
52 /'/g,
53 'sh_string',
57 /function[ \t]+(?:[A-Za-z]|_)[A-Za-z0-9_]*[ \t]*(?:\(\))?|(?:[A-Za-z]|_)[A-Za-z0-9_]*[ \t]*\(\)/g,
58 'sh_function',
62 /(?:[A-Za-z]*[-\/]+[A-Za-z]+)+/g,
63 'sh_normal',
67 /\b(?:alias|bg|bind|break|builtin|caller|case|command|compgen|complete|continue|declare|dirs|disown|do|done|elif|else|enable|esac|eval|exec|exit|export|false|fc|fg|fi|for|getopts|hash|help|history|if|in|jobs|let|local|logout|popd|printf|pushd|read|readonly|return|select|set|shift|shopt|source|suspend|test|then|times|trap|true|type|typeset|umask|unalias|unset|until|wait|while)\b/g,
68 'sh_keyword',
72 /(?:[A-Za-z]|_)[A-Za-z0-9_]*(?==)|\$\{(?:[^ \t]+)\}|\$\((?:[^ \t]+)\)|\$(?:[A-Za-z]|_)[A-Za-z0-9_]*|\$(?:[^ \t]{1})/g,
73 'sh_variable',
77 /~|!|%|\^|\*|\(|\)|\+|=|\[|\]|\\|:|;|,|\.|\/|\?|&|<|>|\||%%|(?:##){2}(?!#)/g,
78 'sh_symbol',
82 /#/g,
83 'sh_comment',
89 /"/g,
90 'sh_string',
94 /\\./g,
95 'sh_specialchar',
101 /'/g,
102 'sh_string',
106 /\\./g,
107 'sh_specialchar',
113 /$/g,
114 null,