File: c.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 (44 lines) | stat: -rw-r--r-- 1,327 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
@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{label}} = @t{'^[[:blank:]]*[[:alnum:]]+:[[:blank:]]*\z'}

(@t{@i{keyword}},@t{@i{normal}},@t{@i{classname}}) = 
  @t{`(\<(?:enum|struct|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{"_Alignas|_Alignof|_Atomic|_Generic|_Noreturn|_Static_assert|_Thread_local"},
  @t{"break|case|catch|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{@i{type}} = @t{"bool|char|double|float|int|long"},
  @t{"short|signed|unsigned|void|wchar_t"},
  @t{"_Bool|_Complex|_Imaginary"}

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

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

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

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

@end example