2023-08-15 23:24:34 +02:00

5 lines
4.7 KiB
VimL

" Vim highlighting for clang-format (.clang-tidy files)
syn match Comment "^\s*#.*"
syn keyword Type BasedOnStyle AccessModifierOffset AlignAfterOpenBracket AlignArrayOfStructures AlignConsecutiveAssignments AlignConsecutiveBitFields AlignConsecutiveDeclarations AlignConsecutiveMacros AlignConsecutiveShortCaseStatements AlignEscapedNewlines AlignOperands AlignTrailingComments AllowAllArgumentsOnNextLine AllowAllConstructorInitializersOnNextLine AllowAllParametersOfDeclarationOnNextLine AllowShortBlocksOnASingleLine AllowShortCaseLabelsOnASingleLine AllowShortEnumsOnASingleLine AllowShortFunctionsOnASingleLine AllowShortIfStatementsOnASingleLine AllowShortLambdasOnASingleLine AllowShortLoopsOnASingleLine AlwaysBreakAfterDefinitionReturnType AlwaysBreakAfterReturnType AlwaysBreakBeforeMultilineStrings AlwaysBreakTemplateDeclarations AttributeMacros BinPackArguments BinPackParameters BitFieldColonSpacing BraceWrapping BracedInitializerIndentWidth BreakAfterAttributes BreakAfterJavaFieldAnnotations BreakArrays BreakBeforeBinaryOperators BreakBeforeBraces BreakBeforeConceptDeclarations BreakBeforeInlineASMColon BreakBeforeTernaryOperators BreakConstructorInitializers BreakInheritanceList BreakStringLiterals ColumnLimit CommentPragmas CompactNamespaces ConstructorInitializerAllOnOneLineOrOnePerLine ConstructorInitializerIndentWidth ContinuationIndentWidth Cpp11BracedListStyle DeriveLineEnding DerivePointerAlignment DisableFormat EmptyLineAfterAccessModifier EmptyLineBeforeAccessModifier ExperimentalAutoDetectBinPacking FixNamespaceComments ForEachMacros IfMacros IncludeBlocks IncludeCategories IncludeIsMainRegex IncludeIsMainSourceRegex IndentAccessModifiers IndentCaseBlocks IndentCaseLabels IndentExternBlock IndentGotoLabels IndentPPDirectives IndentRequiresClause IndentWidth IndentWrappedFunctionNames InsertBraces InsertNewlineAtEOF InsertTrailingCommas IntegerLiteralSeparator JavaImportGroups JavaScriptQuotes JavaScriptWrapImports KeepEmptyLinesAtEOF KeepEmptyLinesAtTheStartOfBlocks LambdaBodyIndentation Language LineEnding MacroBlockBegin MacroBlockEnd Macros MaxEmptyLinesToKeep NamespaceIndentation NamespaceMacros ObjCBinPackProtocolList ObjCBlockIndentWidth ObjCBreakBeforeNestedBlockParam ObjCSpaceAfterProperty ObjCSpaceBeforeProtocolList PPIndentWidth PackConstructorInitializers PenaltyBreakAssignment PenaltyBreakBeforeFirstCallParameter PenaltyBreakComment PenaltyBreakFirstLessLess PenaltyBreakOpenParenthesis PenaltyBreakString PenaltyBreakTemplateDeclaration PenaltyExcessCharacter PenaltyIndentedWhitespace PenaltyReturnTypeOnItsOwnLine PointerAlignment QualifierAlignment QualifierOrder RawStringFormats ReferenceAlignment ReflowComments RemoveBracesLLVM RemoveParentheses RemoveSemicolon RequiresClausePosition RequiresExpressionIndentation SeparateDefinitionBlocks ShortNamespaceLines SortIncludes SortJavaStaticImport SortUsingDeclarations SpaceAfterCStyleCast SpaceAfterLogicalNot SpaceAfterTemplateKeyword SpaceAroundPointerQualifiers SpaceBeforeAssignmentOperators SpaceBeforeCaseColon SpaceBeforeCpp11BracedList SpaceBeforeCtorInitializerColon SpaceBeforeInheritanceColon SpaceBeforeJsonColon SpaceBeforeParens SpaceBeforeParensOptions SpaceBeforeRangeBasedForLoopColon SpaceBeforeSquareBrackets SpaceInEmptyBlock SpaceInEmptyParentheses SpacesBeforeTrailingComments SpacesInAngles SpacesInCStyleCastParentheses SpacesInConditionalStatement SpacesInContainerLiterals SpacesInLineCommentPrefix SpacesInParens SpacesInParensOptions SpacesInParentheses SpacesInSquareBrackets Standard StatementAttributeLikeMacros StatementMacros TabWidth TypeNames TypenameMacros UseCRLF UseTab VerilogBreakBetweenInstancePorts WhitespaceSensitiveMacros
syn keyword Constant Empty OnlyFirstIf Java Middle NonEmptyParentheses Signature MultipleParentheses Pointer LogicalBlock DeriveLF Double DeriveCRLF CRLF TableGen BinPack BeforeHash Never CaseSensitive AllDefinitions Allowed Attach Align Verilog AlignWithSpaces Stroustrup Keyword Always Linux OwnLine Merge Yes SingleLine Default ForIndentation WithPreceding Mozilla LF Left BeforeComma Preserve All Cpp AfterComma TopLevel ForContinuationAndIndentation Wrapped NonAssignment Single GNU BeforeColon NextLineOnly Inline CSharp WithFollowing None Right CaseInsensitive MultiLine Regroup AfterExternBlock Both ControlStatements ControlStatementsExceptControlMacros Inner InlineOnly Allman TopLevelDefinitions AlwaysBreak Indent Latest No CurrentLine Whitesmiths ReturnStatement Proto AlignAfterOperator WebKit WithoutElse OnlyMultiline Auto OuterScope Custom AllIfsAndElse DontAlign AfterColon Before After ObjC BlockIndent TextProto Lexicographic AfterHash Leave NextLine NoIndent Json JavaScript LexicographicNumeric
syn keyword Special true false LLVM Google Chromium Mozilla WebKit Microsoft GNU InheritParentConfig