Exception hierarchy highlighting fixed.

This commit is contained in:
2023-10-25 23:25:28 -04:00
parent a64d4bc014
commit c6a6028da3
2 changed files with 30 additions and 17 deletions

View File

@ -19,18 +19,22 @@ syn keyword cxxExportNamespace exports
syn match cxxConstants "\<\(C::[A-Za-z_]\|k[A-Z]\)[A-Z_a-z0-9]*\>" syn match cxxConstants "\<\(C::[A-Za-z_]\|k[A-Z]\)[A-Z_a-z0-9]*\>"
syn keyword cxxErrorNames Critical CriticalError syn keyword cxxExceptionNames Exception Exception
syn keyword cxxConditionNames Condition
syn keyword cxxNotificationNames Notification
syn keyword cxxErrorNames Error
syn keyword cxxCriticalNames Critical CriticalError
syn keyword cxxViolationNames Violation
syn keyword cxxExceptionNames Exception Exceptions Error
syn match cxxExceptionNames "\<[A-Z][A-Za-z0-9_]*Exception\>" syn match cxxExceptionNames "\<[A-Z][A-Za-z0-9_]*Exception\>"
syn match cxxExceptionNames "\<[A-Z][A-Za-z0-9_]*Error\>"
syn match cxxErrorNames "\<Critical[A-Z][A-Za-z0-9_]*Error\>"
syn keyword cxxNotificationNames Notification syn match cxxConditionNames "\<[A-Z][A-Za-z0-9_]*Condition\>"
syn match cxxNotificationNames "\<[A-Z][A-Za-z0-9_]*Notification\>"
syn keyword cxxConditionNames Condition syn match cxxErrorNames "\<[A-Z][A-Za-z0-9_]*Error\>"
syn match cxxCriticalNames "\<Critical[A-Z][A-Za-z0-9_]*Error\>"
syn keyword cxxViolationNames Violation syn match cxxCriticalNames "\<[A-Z][A-Za-z0-9_]*CriticalError\>"
syn match cxxViolationNames "\<[A-Z][A-Za-z0-9_]*Violation\>"
syn match cxxCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*\(<\)\@=" syn match cxxCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*\(<\)\@="
@ -232,13 +236,17 @@ if version >= 508 || !exists("did_cxx_syntax_inits")
HiLink cxxStatement Statement HiLink cxxStatement Statement
HiLink cxxErrorNames Error " The exception breakdown:
HiLink cxxExceptionNames Exception HiLink cxxExceptionNames Throwable
HiLink cxxConditionNames Condition
HiLink cxxConditionNames Condition
HiLink cxxNotificationNames Notification HiLink cxxNotificationNames Notification
HiLink cxxViolationNames Violation HiLink cxxErrorNames Exception
HiLink cxxCriticalNames Critical
HiLink cxxViolationNames Violation
HiLink cxxStlExceptionNames Exception HiLink cxxStlExceptionNames Exception
HiLink cxxStlNothrow Nothrow HiLink cxxStlNothrow Nothrow
HiLink cxxStlNothrowObject NothrowObject HiLink cxxStlNothrowObject NothrowObject
HiLink cxxDebug Debug HiLink cxxDebug Debug

View File

@ -91,14 +91,19 @@ hi MetaFunction ctermfg=darkcyan start=<esc>[36m stop=<esc>[0m
hi Comment ctermfg=darkgrey cterm=none term=NONE term=none start=<esc>[38;5;242m stop=<esc>[0m hi Comment ctermfg=darkgrey cterm=none term=NONE term=none start=<esc>[38;5;242m stop=<esc>[0m
hi Identifier ctermfg=cyan cterm=none term=none start=<esc>[96m stop=<esc>[0m hi Identifier ctermfg=cyan cterm=none term=none start=<esc>[96m stop=<esc>[0m
hi Object ctermfg=red term=none start=<esc>[91m stop=<esc>[0m hi Object ctermfg=red term=none start=<esc>[91m stop=<esc>[0m
hi Exception ctermfg=brown term=none start=<esc>[38;5;130m stop=<esc>[0m
hi Throwable ctermfg=cyan term=underline
hi Condition ctermfg=darkgreen cterm=italic
hi Notification ctermfg=yellow cterm=italic hi Notification ctermfg=yellow cterm=italic
hi Condition ctermfg=darkgreen cterm=italic hi Exception ctermfg=brown cterm=italic
hi Violation ctermfg=208 cterm=italic,underline hi Critical ctermfg=202 cterm=italic,underline
hi Violation ctermbg=red ctermfg=white
hi Nothrow ctermfg=215 term=none start=<esc>[38;5;130m stop=<esc>[0m hi Nothrow ctermfg=215 term=none start=<esc>[38;5;130m stop=<esc>[0m
hi Nothrow ctermfg=58 term=none start=<esc>[38;5;130m stop=<esc>[0m hi Nothrow ctermfg=58 term=none start=<esc>[38;5;130m stop=<esc>[0m
hi Service ctermfg=green start=<esc>[32m stop=<esc>[0m hi Service ctermfg=green start=<esc>[32m stop=<esc>[0m
hi Error ctermbg=red ctermfg=white cterm=none term=none start=<esc>[101;97m stop=<esc>[0m
hi Caller ctermfg=cyan term=NONE start=<esc>[96m stop=<esc>[0m hi Caller ctermfg=cyan term=NONE start=<esc>[96m stop=<esc>[0m
hi Target ctermfg=green ctermbg=red hi Target ctermfg=green ctermbg=red
hi Sync ctermfg=green ctermbg=red hi Sync ctermfg=green ctermbg=red