Merge pull request #387 from philippwiesemann/fix-typos-doc
[geany-mirror.git] / data / filetypes.rust
blobb6109c7815942404dbb7a13fe2b6cd820db72f12
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 bytestring=string_1
18 bytestringraw=string_2
19 bytecharacter=character
20 operator=operator
21 identifier=identifier_1
22 lifetime=parameter
23 macro=preprocessor
24 lexerror=error
26 [keywords]
27 # all items must be in one line
28 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 virtual while yield
29 secondary=bool char f32 f64 i16 i32 i64 i8 int str u16 u32 u64 u8 uint
30 tertiary=Self
32 [lexer_properties]
33 styling.within.preprocessor=1
34 lexer.cpp.track.preprocessor=0
36 [settings]
37 # default extension used when saving files
38 extension=rs
40 # MIME type
41 mime_type=text/x-rustsrc
43 # single comments, like # in this file
44 comment_single=//
45 # multiline comments
46 comment_open=/*
47 comment_close=*/
49 # set to false if a comment character/string should start at column 0 of a line, true uses any
50 # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
51         #command_example();
52 # setting to false would generate this
53 #       command_example();
54 # This setting works only for single line comments
55 comment_use_indent=true
57 # context action command (please see Geany's main documentation for details)
58 context_action_cmd=
60 [indentation]
61 #width=4
62 # 0 is spaces, 1 is tabs, 2 is tab & spaces
63 #type=1
65 [build_settings]
66 # %f will be replaced by the complete filename
67 # %e will be replaced by the filename without extension
68 # (use only one of it at one time)
69 compiler=rustc "%f"
70 linker=rustc -o "%e" "%f"
71 run_cmd="./%e"