Fix search_find_text not returning -1 when match is out of range.
[geany-mirror.git] / data / filetypes.cpp
blobc12b2c1af29049fb9c862dbebb56f098b3968079
1 # For complete documentation of this file, please see Geany's main documentation
2 [styling]
3 # foreground;background;bold;italic
4 default=default
5 comment=comment
6 commentline=comment
7 commentdoc=commentdoc
8 number=number
9 word=word
10 word2=word2
11 string=string
12 character=string
13 uuid=0x404080
14 preprocessor=preprocessor
15 operator=operator
16 identifier=default
17 stringeol=stringeol
18 # @"verbatim"
19 verbatim=0x101030
20 # (/regex/)
21 regex=0x105090
22 commentlinedoc=commentdoc,bold
23 commentdockeyword=commentdoc,bold,italic
24 commentdockeyworderror=commentdoc
25 globalclass=type
27 [keywords]
28 # all items must be in one line
29 primary=and and_eq asm auto bitand bitor bool break case catch char class compl const const_cast continue default delete do double dynamic_cast else enum explicit export extern false float for friend goto if inline int long mutable namespace new not not_eq operator or or_eq private protected public register reinterpret_cast return short signed sizeof static static_cast struct switch template this throw true try typedef typeid typename union unsigned using virtual void volatile wchar_t while xor xor_eq
30 secondary=
31 # these are some doxygen keywords (incomplete)
32 docComment=attention author brief bug class code date def enum example exception file fn namespace note param remarks return see since struct throw todo typedef var version warning union
34 [lexer_properties]
35 styling.within.preprocessor=1
36 preprocessor.symbol.$(file.patterns.cpp)=#
37 preprocessor.start.$(file.patterns.cpp)=if ifdef ifndef
38 preprocessor.middle.$(file.patterns.cpp)=else elif
39 preprocessor.end.$(file.patterns.cpp)=endif
41 [settings]
42 lexer_filetype=C
44 # default extension used when saving files
45 #extension=cpp
47 # the following characters are these which a "word" can contains, see documentation
48 #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
50 # if only single comment char is supported like # in this file, leave comment_close blank
51 comment_open=//
52 comment_close=
53 # this is an alternative way, so multiline comments are used
54 #comment_open=/*
55 #comment_close=*/
57 # set to false if a comment character/string should start at column 0 of a line, true uses any
58 # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
59 #command_example();
60 # setting to false would generate this
61 # command_example();
62 # This setting works only for single line comments
63 comment_use_indent=true
65 # context action command (please see Geany's main documentation for details)
66 context_action_cmd=
68 [build_settings]
69 # %f will be replaced by the complete filename
70 # %e will be replaced by the filename without extension
71 # (use only one of it at one time)
72 compiler=g++ -Wall -c "%f"
73 linker=g++ -Wall -o "%e" "%f"
74 run_cmd="./%e"