view runtime/syntax/scdoc.vim @ 33276:05c320c640de v9.0.1905

patch 9.0.1905: FEAT_FLOAT no longer defined Commit: https://github.com/vim/vim/commit/0483e49f90d85f5172f2050426913ac718f1c176 Author: dundargoc <gocdundar@gmail.com> Date: Sun Sep 17 16:58:22 2023 +0200 patch 9.0.1905: FEAT_FLOAT no longer defined Problem: FEAT_FLOAT no longer defined Solution: Remove last existing FEAT_FLOAT ifdefs in message_test Remove FEAT_FLOAT as that should always be true FEAT_FLOAT has been removed in v9.0.0491 (73e28dcc6125f616cf1f2) but unfortunately, it was forgotten to remove it from message_test.c. So let's remove the last mentioned ifdefs which are now unused. closes: #13106 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: dundargoc <gocdundar@gmail.com>
author Christian Brabandt <cb@256bit.org>
date Sun, 17 Sep 2023 17:15:04 +0200
parents cd68a630f0d0
children
line wrap: on
line source

" Syntax file for scdoc files
" Maintainer: Gregory Anders <contact@gpanders.com>
" Last Updated: 2022-05-09
" Upstream: https://github.com/gpanders/vim-scdoc

if exists('b:current_syntax')
    finish
endif
let b:current_syntax = 'scdoc'

syntax match scdocFirstLineError "\%^.*$"
syntax match scdocFirstLineValid "\%^\S\+(\d[0-9A-Za-z]*)\%(\s\+\"[^"]*\"\%(\s\+\"[^"]*\"\)\=\)\=$"

syntax region scdocCommentError start="^;\S" end="$" keepend
syntax region scdocComment start="^; " end="$" keepend

syntax region scdocHeaderError start="^#\{3,}" end="$" keepend
syntax region scdocHeader start="^#\{1,2}" end="$" keepend

syntax match scdocIndentError "^[ ]\+"

syntax match scdocLineBreak "++$"

syntax region scdocOrderedListItem matchgroup=scdocOrderedListMarker start="^\z(\s*\)\." skip="^\z1  .*$" end="^" contains=scdocBold,scdocUnderline
syntax region scdocListItem matchgroup=scdocListMarker start="^\z(\s*\)-" skip="^\z1  .*$" end="^" contains=scdocBold,scdocUnderline

" Tables cannot start with a column
syntax match scdocTableError "^:"

syntax region scdocTable matchgroup=scdocTableEntry start="^[\[|\]][\[\-\]<=>]" end="^$" contains=scdocTableEntry,scdocTableError,scdocTableContinuation,scdocBold,scdocUnderline,scdocPre
syntax match scdocTableError "^.*$" contained
syntax match scdocTableContinuation "^   \+\S\+" contained
syntax match scdocTableEntry "^[|:][\[\-\]<=> ]" contained
syntax match scdocTableError "^[|:][\[\-\]<=> ]\S.*$" contained

syntax region scdocBold concealends matchgroup=scdocBoldDelimiter start="\\\@<!\*" end="\\\@<!\*"
syntax region scdocUnderline concealends matchgroup=scdocUnderlineDelimiter start="\<\\\@<!_" end="\\\@<!_\>"
syntax region scdocPre matchgroup=scdocPreDelimiter start="^\t*```" end="^\t*```"

syntax sync minlines=50

hi default link scdocFirstLineValid     Comment
hi default link scdocComment            Comment
hi default link scdocHeader             Title
hi default link scdocOrderedListMarker  Statement
hi default link scdocListMarker         scdocOrderedListMarker
hi default link scdocLineBreak          Special
hi default link scdocTableSpecifier     Statement
hi default link scdocTableEntry         Statement

hi default link scdocFirstLineError        Error
hi default link scdocCommentError          Error
hi default link scdocHeaderError           Error
hi default link scdocIndentError           Error
hi default link scdocTableError            Error
hi default link scdocTableError Error

hi default link scdocPreDelimiter       Delimiter

hi default scdocBold term=bold cterm=bold gui=bold
hi default scdocUnderline term=underline cterm=underline gui=underline
hi default link scdocBoldDelimiter scdocBold
hi default link scdocUnderlineDelimiter scdocUnderline