Merge pull request #1361 from Akronix/keywords-js.filetypes
[geany-mirror.git] / data / filedefs / filetypes.javascript
blobea751fd55f81f1549d0e3f051980909e585fcf62
1 # For complete documentation of this file, please see Geany's main documentation
2 [styling=C]
4 [keywords]
5 # all items must be in one line
6 primary=break case catch class const continue debugger default delete do else enum export extends false finally for function get if import in Infinity instanceof let NaN new null return set static super switch this throw true try typeof undefined var void while with yield prototype async await
7 secondary=Array Boolean Date Function Math Number Object String RegExp EvalError Error RangeError ReferenceError SyntaxError TypeError URIError constructor prototype decodeURI decodeURIComponent encodeURI encodeURIComponent eval isFinite isNaN parseFloat parseInt
9 [lexer_properties=C]
10 # partially handles ES6 template strings
11 lexer.cpp.backquoted.strings=1
13 [settings]
14 # default extension used when saving files
15 extension=js
17 # MIME type
18 mime_type=application/javascript
20 # the following characters are these which a "word" can contains, see documentation
21 #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
23 # single comments, like # in this file
24 comment_single=//
25 # multiline comments
26 comment_open=/*
27 comment_close=*/
29 # set to false if a comment character/string should start at column 0 of a line, true uses any
30 # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
31         #command_example();
32 # setting to false would generate this
33 #       command_example();
34 # This setting works only for single line comments
35 comment_use_indent=true
37 # context action command (please see Geany's main documentation for details)
38 context_action_cmd=
40 [indentation]
41 #width=4
42 # 0 is spaces, 1 is tabs, 2 is tab & spaces
43 #type=1
45 [build-menu]
46 # %f will be replaced by the complete filename
47 # %e will be replaced by the filename without extension
48 # (use only one of it at one time)
49 FT_02_LB=_Lint
50 FT_02_CM=jshint "%f"
51 FT_02_WD=
52 error_regex=([^:]+): line ([0-9]+), col ([0-9]+)