Adding tr update to NEWS file
[geany-mirror.git] / data / filetypes.rust
blob6f26173e1769897855600999582c06017cce947b
1 # For complete documentation of this file, please see Geany's main documentation
2 [styling]
3 # Edit these in the colorscheme .conf file instead
4 default=default
5 commentblock=comment
6 commentline=comment_line
7 commentblockdoc=comment_doc
8 commentlinedoc=comment_doc
9 number=number_1
10 word=keyword_1
11 word2=keyword_2
12 word3=keyword_3
13 word4=type
14 string=string_1
15 stringraw=string_2
16 character=character
17 operator=operator
18 identifier=identifier_1
19 lifetime=parameter
20 macro=preprocessor
21 lexerror=error
23 [keywords]
24 # all items must be in one line
25 primary=alignof as be box break const continue crate do else enum extern false fn for if impl in let loop match mod mut offsetof once priv proc pub pure ref return self sizeof static struct super trait true type typeof unsafe unsized use while yield
26 secondary=bool char f32 f64 i16 i32 i64 i8 int str u16 u32 u64 u8 uint
27 tertiary=Self
29 [lexer_properties]
30 styling.within.preprocessor=1
31 lexer.cpp.track.preprocessor=0
33 [settings]
34 # default extension used when saving files
35 extension=rs
37 # single comments, like # in this file
38 comment_single=//
39 # multiline comments
40 comment_open=/*
41 comment_close=*/
43 # set to false if a comment character/string should start at column 0 of a line, true uses any
44 # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
45         #command_example();
46 # setting to false would generate this
47 #       command_example();
48 # This setting works only for single line comments
49 comment_use_indent=true
51 # context action command (please see Geany's main documentation for details)
52 context_action_cmd=
54 [indentation]
55 #width=4
56 # 0 is spaces, 1 is tabs, 2 is tab & spaces
57 #type=1
59 [build_settings]
60 # %f will be replaced by the complete filename
61 # %e will be replaced by the filename without extension
62 # (use only one of it at one time)
63 compiler=rustc "%f"
64 linker=rustc -o "%e" "%f"
65 run_cmd="./%e"