Changeset 2564 for devel-tools/trunk/vim


Ignore:
Timestamp:
Mar 30, 2007, 8:21:56 PM (14 years ago)
Author:
orlov
Message:
  • Ignore matching braces in strings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/vim/syntax/refal.vim

    r2334 r2564  
    2323syn match       Operator        "\$\(r\|l\|iter\)"
    2424syn match       Operator        "\$\(fail\|error\|trap\|with\)"
    25 syn match       Symbol          "[A-Z?!][A-Za-z0-9_\-?!]*"
    26 syn region      Symbol          start="\"" end="\"" skip="\\."
    27 syn region      Symbol          start="\'" end="\'" skip="\\."
     25syn match       String          "[A-Z?!][A-Za-z0-9_\-?!]*"
     26syn region      String          start="\"" end="\"" skip="\\."
     27syn region      String          start="\'" end="\'" skip="\\."
    2828syn match       Variable        "[estv]\.\=[A-Za-z0-9_\-?!]*" contains=VarType
    2929syn match       VarType         "[estv]" contained nextgroup=VarName
     
    4848syn region      FunExpression   matchgroup=Funcall start="<\"[A-Za-z0-9_\-?\+\*\/\\\ \.\,\:\!<>=]*\""hs=s+1 matchgroup=FunExpression end=">" contains=@FunExpression2
    4949syn region      Block           start="{" end="}" contains=@Block2
    50 syn cluster     ObjExpression2  contains=Symbol,Variable,ObjExpression,FunExpression,FunError,SpaceError,Operator,Comment
    51 syn cluster     FunExpression2  contains=Symbol,Variable,ObjExpression,FunExpression,ParenError,SpaceError,Operator,Comment
    52 syn cluster     Block2          contains=Symbol,Variable,ObjExpression,FunExpression,Block,ParenError,FunError,SpaceError,Operator,Comment
     50syn cluster     ObjExpression2  contains=String,Variable,ObjExpression,FunExpression,FunError,SpaceError,Operator,Comment
     51syn cluster     FunExpression2  contains=String,Variable,ObjExpression,FunExpression,ParenError,SpaceError,Operator,Comment
     52syn cluster     Block2          contains=String,Variable,ObjExpression,FunExpression,Block,ParenError,FunError,SpaceError,Operator,Comment
    5353
    5454syntax sync ccomment
     
    6767
    6868        HiLink Directive        Include
    69         HiLink Symbol           Identifier
     69        hi link String          Identifier
    7070"       HiLink Variable         Type
    7171"       HiLink VarType          Type
Note: See TracChangeset for help on using the changeset viewer.