File: cpp.lang.texinfo

package info (click to toggle)
source-highlight 3.1.9-4.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,612 kB
  • sloc: cpp: 10,202; ansic: 9,521; sh: 4,582; makefile: 1,893; lex: 1,200; yacc: 1,021; javascript: 338; php: 213; perl: 211; awk: 98; erlang: 94; lisp: 90; java: 75; ruby: 69; python: 61; asm: 43; ada: 37; ml: 29; haskell: 27; xml: 23; cs: 11; sql: 8; tcl: 7; sed: 4
file content (50 lines) | stat: -rw-r--r-- 1,590 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@c Generator: GNU source-highlight, by Lorenzo Bettini, http://www.gnu.org/software/src-highlite
@example
@r{@i{# definitions for C++}}

@b{include} @t{"c_comment.lang"}

(@t{@i{keyword}},@t{@i{normal}},@t{@i{classname}}) = 
  @t{`(\<(?:enum|class|struct|typename|union))([[:blank:]]+)([[:alnum:]_]+)`}

@b{include} @t{"c_preprocessor.lang"}

@b{include} @t{"number.lang"}

@b{include} @t{"c_string.lang"}

@t{@i{keyword}} = @t{"__asm|__cdecl|__declspec|__export|__far16"},
  @t{"__fastcall|__fortran|__import"},
  @t{"__pascal|__rtti|__stdcall|_asm|_cdecl"},
  @t{"__except|_export|_far16|_fastcall"},
  @t{"__finally|_fortran|_import|_pascal|_stdcall|__thread|__try|asm|auto"},
  @t{"break|case|cdecl|const|continue|default"},
  @t{"do|else|enum|extern|for|goto"},
  @t{"if|pascal"},
  @t{"register|restrict|return|sizeof|static"},
  @t{"struct|switch"},
  @t{"typedef|union"},
  @t{"volatile|while"},
  @t{"catch|class|const_cast|constexpr|decltype|delete"},
  @t{"dynamic_cast|explicit|export|false|final|friend"},
  @t{"inline|mutable|namespace|new|noexcept|operator|override"},
  @t{"private|protected|public|reinterpret_cast|static_cast"},
  @t{"static_assert|template|this|throw|true"},
  @t{"try|typeid|typename"},
  @t{"using|virtual"}

@t{@i{label}} = @t{'^[[:blank:]]*[[:alnum:]]+:[[:blank:]]*\z'}

@t{@i{type}} = @t{"bool|char|double|float|int|long"},
  @t{"short|signed|unsigned|void|wchar_t"},
  @t{"char16_t|char32_t"}

@b{include} @t{"symbols.lang"}

@t{@i{cbracket}} = @t{"@{|@}"}

@b{include} @t{"function.lang"}

@b{include} @t{"clike_vardeclaration.lang"}

@end example