geany/data/filetypes.rust

67 lines
1.8 KiB
Plaintext
Raw Normal View History

2013-10-17 20:07:18 -04:00
# For complete documentation of this file, please see Geany's main documentation
[styling]
# Edit these in the colorscheme .conf file instead
default=default
commentblock=comment
commentline=comment_line
commentblockdoc=comment_doc
commentlinedoc=comment_doc
number=number_1
word=keyword_1
word2=keyword_2
word3=keyword_3
word4=type
string=string_1
stringraw=string_2
character=character
operator=operator
identifier=identifier_1
lifetime=parameter
macro=preprocessor
lexerror=error
2013-10-17 20:07:18 -04:00
[keywords]
# all items must be in one line
primary=alignof as be box break const continue do else enum extern false fn for if impl in let __log_level 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
secondary=bool char f32 f64 i16 i32 i64 i8 int str u16 u32 u64 u8 uint
tertiary=Self
2013-10-17 20:07:18 -04:00
[lexer_properties]
styling.within.preprocessor=1
lexer.cpp.track.preprocessor=0
[settings]
# default extension used when saving files
extension=rs
# single comments, like # in this file
comment_single=//
# multiline comments
comment_open=/*
comment_close=*/
# set to false if a comment character/string should start at column 0 of a line, true uses any
# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
#command_example();
# setting to false would generate this
# command_example();
# This setting works only for single line comments
comment_use_indent=true
# context action command (please see Geany's main documentation for details)
context_action_cmd=
[indentation]
#width=4
# 0 is spaces, 1 is tabs, 2 is tab & spaces
#type=1
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
# (use only one of it at one time)
compiler=rustc "%f"
linker=rustc -o "%e" "%f"
run_cmd="./%e"