view runtime/syntax/lc.vim @ 35359:082986a7377d default tip

runtime(doc): Added definitions of Vim scripts and plugins Commit: https://github.com/vim/vim/commit/c593b9ead9b4346724187ab604fa593ead1fa4b2 Author: Ubaldo Tiberi <ubaldo.tiberi@gmail.com> Date: Sun Jun 9 18:47:53 2024 +0200 runtime(doc): Added definitions of Vim scripts and plugins closes: https://github.com/vim/vim/issues/14935 Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 09 Jun 2024 19:00:03 +0200
parents 7c7432a53a6c
children
line wrap: on
line source

" Vim syntax file
" Language:     Elsa
" Maintainer:   Miles Glapa-Grossklag <miles@glapa-grossklag.com>
" Last Change:  2023-01-29
"               2024 May 25 by Riley Bruins <ribru17@gmail.com> (move 'commentstring' to ftplugin)

if exists('b:current_syntax')
  finish
endif

" Keywords
syntax keyword elsaKeyword let eval
syntax match elsaKeyword "\v:"
highlight link elsaKeyword Keyword

" Comments
syntax match elsaComment "\v--.*$"
highlight link elsaComment Comment

" Operators
syntax match elsaOperator "\v\="
syntax match elsaOperator "\v\=[abd*~]\>"
syntax match elsaOperator "\v-\>"
syntax match elsaOperator "\v\\"
highlight link elsaOperator Operator

" Definitions
syntax match elsaConstant "\v[A-Z]+[A-Z_0-9]*"
highlight link elsaConstant Constant

let b:current_syntax = 'elsa'