codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: fdcc or locale files3" Maintainer: Dwayne Bailey <dwayne@translate.org.za>4" Last Change: 2004 May 165" Remarks: FDCC (Formal Definitions of Cultural Conventions) see ISO TR 146526 7" quit when a syntax file was already loaded8if exists("b:current_syntax")9 finish10endif11 12syn sync minlines=15013setlocal iskeyword+=-14 15" Numbers16syn match fdccNumber /[0-9]*/ contained17 18" Unicode codings and strings19syn match fdccUnicodeInValid /<[^<]*>/ contained20syn match fdccUnicodeValid /<U[0-9A-F][0-9A-F][0-9A-F][0-9A-F]>/ contained21syn region fdccString start=/"/ end=/"/ contains=fdccUnicodeInValid,fdccUnicodeValid22 23" Valid LC_ Keywords24syn keyword fdccKeyword escape_char comment_char25syn keyword fdccKeywordIdentification title source address contact email tel fax language territory revision date category26syn keyword fdccKeywordCtype copy space translit_start include translit_end outdigit class27syn keyword fdccKeywordCollate copy script order_start order_end collating-symbol reorder-after reorder-end collating-element symbol-equivalence28syn keyword fdccKeywordMonetary copy int_curr_symbol currency_symbol mon_decimal_point mon_thousands_sep mon_grouping positive_sign negative_sign int_frac_digits frac_digits p_cs_precedes p_sep_by_space n_cs_precedes n_sep_by_space p_sign_posn n_sign_posn int_p_cs_precedes int_p_sep_by_space int_n_cs_precedes int_n_sep_by_space int_p_sign_posn int_n_sign_posn29syn keyword fdccKeywordNumeric copy decimal_point thousands_sep grouping30syn keyword fdccKeywordTime copy abday day abmon mon d_t_fmt d_fmt t_fmt am_pm t_fmt_ampm date_fmt era_d_fmt first_weekday first_workday week cal_direction time_zone era alt_digits era_d_t_fmt31syn keyword fdccKeywordMessages copy yesexpr noexpr yesstr nostr32syn keyword fdccKeywordPaper copy height width33syn keyword fdccKeywordTelephone copy tel_int_fmt int_prefix tel_dom_fmt int_select34syn keyword fdccKeywordMeasurement copy measurement35syn keyword fdccKeywordName copy name_fmt name_gen name_mr name_mrs name_miss name_ms36syn keyword fdccKeywordAddress copy postal_fmt country_name country_post country_ab2 country_ab3 country_num country_car country_isbn lang_name lang_ab lang_term lang_lib37 38" Comments39syn keyword fdccTodo TODO FIXME contained40syn match fdccVariable /%[a-zA-Z]/ contained41syn match fdccComment /[#%].*/ contains=fdccTodo,fdccVariable42 43" LC_ Groups44syn region fdccBlank matchgroup=fdccLCIdentification start=/^LC_IDENTIFICATION$/ end=/^END LC_IDENTIFICATION$/ contains=fdccKeywordIdentification,fdccString,fdccComment45syn region fdccBlank matchgroup=fdccLCCtype start=/^LC_CTYPE$/ end=/^END LC_CTYPE$/ contains=fdccKeywordCtype,fdccString,fdccComment,fdccUnicodeInValid,fdccUnicodeValid46syn region fdccBlank matchgroup=fdccLCCollate start=/^LC_COLLATE$/ end=/^END LC_COLLATE$/ contains=fdccKeywordCollate,fdccString,fdccComment,fdccUnicodeInValid,fdccUnicodeValid47syn region fdccBlank matchgroup=fdccLCMonetary start=/^LC_MONETARY$/ end=/^END LC_MONETARY$/ contains=fdccKeywordMonetary,fdccString,fdccComment,fdccNumber48syn region fdccBlank matchgroup=fdccLCNumeric start=/^LC_NUMERIC$/ end=/^END LC_NUMERIC$/ contains=fdccKeywordNumeric,fdccString,fdccComment,fdccNumber49syn region fdccBlank matchgroup=fdccLCTime start=/^LC_TIME$/ end=/^END LC_TIME$/ contains=fdccKeywordTime,fdccString,fdccComment,fdccNumber50syn region fdccBlank matchgroup=fdccLCMessages start=/^LC_MESSAGES$/ end=/^END LC_MESSAGES$/ contains=fdccKeywordMessages,fdccString,fdccComment51syn region fdccBlank matchgroup=fdccLCPaper start=/^LC_PAPER$/ end=/^END LC_PAPER$/ contains=fdccKeywordPaper,fdccString,fdccComment,fdccNumber52syn region fdccBlank matchgroup=fdccLCTelephone start=/^LC_TELEPHONE$/ end=/^END LC_TELEPHONE$/ contains=fdccKeywordTelephone,fdccString,fdccComment53syn region fdccBlank matchgroup=fdccLCMeasurement start=/^LC_MEASUREMENT$/ end=/^END LC_MEASUREMENT$/ contains=fdccKeywordMeasurement,fdccString,fdccComment,fdccNumber54syn region fdccBlank matchgroup=fdccLCName start=/^LC_NAME$/ end=/^END LC_NAME$/ contains=fdccKeywordName,fdccString,fdccComment55syn region fdccBlank matchgroup=fdccLCAddress start=/^LC_ADDRESS$/ end=/^END LC_ADDRESS$/ contains=fdccKeywordAddress,fdccString,fdccComment,fdccNumber56 57 58" Only when an item doesn't have highlighting yet59 60hi def link fdccBlank Blank61 62hi def link fdccTodo Todo63hi def link fdccComment Comment64hi def link fdccVariable Type65 66hi def link fdccLCIdentification Statement67hi def link fdccLCCtype Statement68hi def link fdccLCCollate Statement69hi def link fdccLCMonetary Statement70hi def link fdccLCNumeric Statement71hi def link fdccLCTime Statement72hi def link fdccLCMessages Statement73hi def link fdccLCPaper Statement74hi def link fdccLCTelephone Statement75hi def link fdccLCMeasurement Statement76hi def link fdccLCName Statement77hi def link fdccLCAddress Statement78 79hi def link fdccUnicodeInValid Error80hi def link fdccUnicodeValid String81hi def link fdccString String82hi def link fdccNumber Blank83 84hi def link fdccKeywordIdentification fdccKeyword85hi def link fdccKeywordCtype fdccKeyword86hi def link fdccKeywordCollate fdccKeyword87hi def link fdccKeywordMonetary fdccKeyword88hi def link fdccKeywordNumeric fdccKeyword89hi def link fdccKeywordTime fdccKeyword90hi def link fdccKeywordMessages fdccKeyword91hi def link fdccKeywordPaper fdccKeyword92hi def link fdccKeywordTelephone fdccKeyword93hi def link fdccKeywordMeasurement fdccKeyword94hi def link fdccKeywordName fdccKeyword95hi def link fdccKeywordAddress fdccKeyword96hi def link fdccKeyword Identifier97 98 99let b:current_syntax = "fdcc"100 101" vim: ts=8102 