mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 13:12:22 +00:00
userdiff: update C/C++ patterns
This pulls upstream changes from: git/git@8a2e8da367 git/git@abf8f98602 git/git@407e07f2a6 all by Johannes Sixt <j6t@kdbg.org>.
This commit is contained in:
parent
ce2e82694a
commit
76b4e3d4de
@ -159,15 +159,13 @@ PATTERNS("tex", "^(\\\\((sub)*section|chapter|part)\\*{0,1}\\{.*)$",
|
|||||||
|
|
||||||
PATTERNS("cpp",
|
PATTERNS("cpp",
|
||||||
/* Jump targets or access declarations */
|
/* Jump targets or access declarations */
|
||||||
"!^[ \t]*[A-Za-z_][A-Za-z_0-9]*:.*$\n"
|
"!^[ \t]*[A-Za-z_][A-Za-z_0-9]*:[[:space:]]*($|/[/*])\n"
|
||||||
/* C/++ functions/methods at top level */
|
/* functions/methods, variables, and compounds at top level */
|
||||||
"^([A-Za-z_][A-Za-z_0-9]*([ \t*]+[A-Za-z_][A-Za-z_0-9]*([ \t]*::[ \t]*[^[:space:]]+)?){1,}[ \t]*\\([^;]*)$\n"
|
"^((::[[:space:]]*)?[A-Za-z_].*)$",
|
||||||
/* compound type at top level */
|
|
||||||
"^((struct|class|enum)[^;]*)$",
|
|
||||||
/* -- */
|
/* -- */
|
||||||
"[a-zA-Z_][a-zA-Z0-9_]*"
|
"[a-zA-Z_][a-zA-Z0-9_]*"
|
||||||
"|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?"
|
"|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lLuU]*"
|
||||||
"|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->"),
|
"|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->\\*?|\\.\\*"),
|
||||||
|
|
||||||
PATTERNS("csharp",
|
PATTERNS("csharp",
|
||||||
/* Keywords */
|
/* Keywords */
|
||||||
|
Loading…
Reference in New Issue
Block a user