Damos Syntax-Highliting verbessert
+ EditFiles git-svn-id: https://vimsuite.svn.sourceforge.net/svnroot/vimsuite/trunk@163 eb2d0018-73a3-4aeb-bfe9-1def61c9ec69
This commit is contained in:
parent
8b445f9dc3
commit
0b6ee9f4d3
@ -24,7 +24,7 @@ syn keyword damosFunction begrenzeFehlerausgabe unterdrueckeBeaFort
|
||||
syn keyword damosFunction einstelleSprache oeffneOSp liesBezeichner oeffnePV
|
||||
syn keyword damosFunction liesAdressDatei anlegeDatenstand
|
||||
syn keyword damosFunction liesKonservierung speichere schreibeHexDatei
|
||||
syn keyword damosFunction schreibeASAP_AgIAsw
|
||||
syn keyword damosFunction schreibeASAP_AgIAsw liesHexDatei
|
||||
syn keyword damosFunction kdoOTypCheck ausfuehre ausfuehreTrans pruefeAutoRam
|
||||
syn keyword damosFunction pruefeFktKonsistenz schreibeFhlListAusFktKonsPruef
|
||||
syn keyword damosFunction oeffneQuellDatenstand fuelleAusTestwerte
|
||||
@ -36,10 +36,14 @@ syn keyword damosFunction schliesseOSp schliesseQuellDatenstand
|
||||
syn keyword damosFunction anzeigeVarKod liefereName
|
||||
syn keyword damosFunction pruefeAblKonsistenz pruefeBezeichnerListe
|
||||
syn keyword damosFunction pruefeRefInfo pruefeSpeicherbereiche
|
||||
syn keyword damosFunction pruefeMinPMaxP pruefeVarKod vater
|
||||
syn keyword damosFunction pruefeMinPMaxP pruefeVarKod vater sohn
|
||||
syn keyword damosFunction schreibeFhlListAusBezKonsPruef schreibeFktIncludeAsw
|
||||
syn keyword damosFunction exportiereObjekte anlegeEprom schliesseEprom anlegeProgrammstand
|
||||
syn keyword damosFunction oeffneDatenstand schliesseDatenstand fuelleKompAdr
|
||||
syn keyword damosFunction setzeBezeichnerFormat oeffneEprom schreibeASAP
|
||||
syn keyword damosFunction setzeDokuTyp schreibeDokument schliessePV
|
||||
|
||||
syn keyword damosCommand exit Dam DAMOS quellDst
|
||||
syn keyword damosCommand exit Dam DAMOS quellDst IF ENDIF
|
||||
|
||||
syn match damosSeperator "[<>,:]"
|
||||
|
||||
|
@ -18,12 +18,11 @@ syntax keyword kgsDefinitions kenngroessen_gruppe ramgroessen_gruppe
|
||||
syntax keyword kgsRefgroessen ref_ram_groesse ref_kenngroesse
|
||||
syntax keyword kgsKomponents umrechnung codesyntax datentyp adressierschema
|
||||
syntax keyword kgsKomponents bitanzahl element_anzahl bitbasis_typ bitposition
|
||||
syntax keyword kgsKomponents bitbasis_name init_wert init_wertp minp_w maxp_w
|
||||
syntax keyword kgsKomponents ablageschema umrechnung anzahl min_w max_w
|
||||
syntax keyword kgsKomponents test_wert test_wertp test_wert_text nicht_im_eprom
|
||||
syntax keyword kgsKomponents bitbasis_name init_wertp minp_w maxp_w
|
||||
syntax keyword kgsKomponents ablageschema umrechnung anzahl
|
||||
syntax keyword kgsKomponents test_wertp test_wert_text nicht_im_eprom
|
||||
syntax keyword kgsKomponents eingangsgroesse_x eingangsgroesse_y ergebnisgroesse
|
||||
syntax keyword kgsKomponents anzahl_stuetzstellen_x anzahl_stuetzstellen_y
|
||||
syntax keyword kgsKomponents test_stuetzstellen_x test_stuetzstellen_y
|
||||
syntax keyword kgsKomponents anzahl_test_stuetzstellen_x anzahl_test_stuetzstellen_y
|
||||
syntax keyword kgsKomponents gruppenstuetzstellen_x gruppenstuetzstellen_y
|
||||
syntax keyword kgsKomponents minp_x minp_y maxp_x maxp_y
|
||||
@ -31,9 +30,13 @@ syntax keyword kgsKomponents shift_x offset_x shift_y offset_y
|
||||
syntax keyword kgsKomponents test_stuetzstellenp_x test_stuetzstellenp_y
|
||||
syntax keyword kgsKomponents nicht_applizierbar
|
||||
syntax keyword kgsKomponents deutsch
|
||||
syntax keyword kgsDeprecated min_w min_x min_y max_w max_x max_y init_wert test_wert
|
||||
syntax keyword kgsDeprecated test_stuetzstellen_x test_stuetzstellen_y
|
||||
syntax keyword kgsDeprecated kopfdaten_applizierbar
|
||||
|
||||
|
||||
highlight def link kgsFunctions Function
|
||||
highlight def link kgsDefinitions Function
|
||||
highlight def link kgsRefgroessen Function
|
||||
highlight def link kgsKomponents Type
|
||||
highlight def link kgsDeprecated ToDo
|
||||
|
@ -5,6 +5,7 @@ setlocal expandtab
|
||||
setlocal tabstop=4
|
||||
setlocal shiftwidth=4
|
||||
setlocal formatoptions=croq
|
||||
setlocal syntax=a2l
|
||||
|
||||
" commenting
|
||||
let b:commentstring = '//'
|
||||
|
@ -509,6 +509,16 @@ function FindFile()
|
||||
execute ':find ' basename
|
||||
endfunction
|
||||
|
||||
" Open multiple files
|
||||
command -nargs=+ -complete=file EditFiles call EditFiles('<args>')
|
||||
function EditFiles(wildcards)
|
||||
for wildcard in split(a:wildcards)
|
||||
for file in split(expand(wildcard))
|
||||
execute('edit ' . file)
|
||||
endfor
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
" don't use :grep
|
||||
let &grepprg='echo extern grep is not supported. Use vimgrep'
|
||||
|
||||
|
@ -1555,3 +1555,4 @@ z
|
||||
überarbeitungen
|
||||
überlaufsicher
|
||||
überlaufsichere
|
||||
report
|
||||
|
Binary file not shown.
46
vimfiles.stefan/syntax/a2l.vim
Normal file
46
vimfiles.stefan/syntax/a2l.vim
Normal file
@ -0,0 +1,46 @@
|
||||
" Vim syntax file
|
||||
" Language: ASAP
|
||||
" Maintainer: Stefan Liebl
|
||||
" Last Change: 2008 Aug 27
|
||||
" License: This file is placed in the public domain.
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn match BlockCommand '/begin\s\+\w\+'
|
||||
syn match BlockCommand '/end\s\+\w\+'
|
||||
syn region String start=+"+ end=+"+
|
||||
syn keyword attribute ASAP2_VERSION VERSION PROJECT_NO
|
||||
syn keyword attribute CUSTOMER_NO USER PHONE_NO ECU CPU_TYPE
|
||||
syn keyword attribute SYSTEM_CONSTANT
|
||||
syn keyword attribute BYTE_ORDER ALIGNMENT_BYTE ALIGNMENT_WORD ALIGNMENT_LONG ALIGNMENT_FLOAT32_IEEE
|
||||
syn keyword attribute FORMAT DEPOSIT AXIS_PTS_REF BIT_MASK ECU_ADDRESS ARRAY_SIZE
|
||||
syn keyword attribute COEFFS FNC_VALUES NO_AXIS_PTS_X NO_AXIS_PTS_Y AXIS_PTS_X AXIS_PTS_Y
|
||||
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_srec_syntax_inits")
|
||||
if version < 508
|
||||
let did_srec_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
" HiLink Record Normal
|
||||
HiLink BlockCommand Statement
|
||||
HiLink attribute Statement
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "paf"
|
||||
|
||||
" vim: ts=8
|
@ -10,6 +10,7 @@ let g:diff = expand($VIMRUNTIME . '/diff ')
|
||||
let g:svn = expand('svn ')
|
||||
let g:cvs = expand('cvs ')
|
||||
let g:cp = expand('copy ')
|
||||
let g:cat = expand('type ')
|
||||
let g:mv = expand('move ')
|
||||
let g:rm = expand('del ')
|
||||
let g:rm_f = expand('del ') . '/Q '
|
||||
|
Loading…
x
Reference in New Issue
Block a user