Changeset 2593 for devel-tools/trunk/vim


Ignore:
Timestamp:
Apr 2, 2007, 1:00:22 AM (14 years ago)
Author:
orlov
Message:
  • Highlight '.' in identifiers.
  • '_' can be used in words.
  • Highlight $module directive.
File:
1 edited

Legend:

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

    r2564 r2593  
    1313
    1414if version >= 600
    15         setlocal iskeyword=a-z,A-Z,48-57,-,.,?,!
     15        setlocal iskeyword=a-z,A-Z,48-57,-,_,.,?,!
    1616else
    17         set iskeyword=a-z,A-Z,48-57,-,.,?,!
     17        set iskeyword=a-z,A-Z,48-57,-,_,.,?,!
    1818endif
    1919
    20 syn match       Directive       "\$\(use\|import\|func\|box\|const\|table\)?\="
    21 syn match       Directive       "\$\(vector\|string\|channel\)?\="
    22 syn match       Directive       "\$\(traceall\|trace\|extern\)?\="
     20syn match       Directive       "\$\(module\|use\|import\|func?\=\|const\)"
     21syn match       Directive       "\$\(box\|table\|vector\|string\|channel\)"
     22syn match       Directive       "\$\(traceall\|trace\|extern\)"
    2323syn match       Operator        "\$\(r\|l\|iter\)"
    2424syn match       Operator        "\$\(fail\|error\|trap\|with\)"
    25 syn match       String          "[A-Z?!][A-Za-z0-9_\-?!]*"
     25syn match       String          "[A-Z?!_][A-Za-z0-9_\-?!.]*"
    2626syn region      String          start="\"" end="\"" skip="\\."
    2727syn region      String          start="\'" end="\'" skip="\\."
     
    4545
    4646syn region      ObjExpression   start="(" end=")" contains=@ObjExpression2
    47 syn region      FunExpression   matchgroup=Funcall start="<[A-Z?!][A-Za-z0-9_\-?!]*"hs=s+1 matchgroup=FunExpression end=">" contains=@FunExpression2
     47syn region      FunExpression   matchgroup=Funcall start="<[A-Z?!][A-Za-z0-9_\-?!.]*"hs=s+1 matchgroup=FunExpression end=">" contains=@FunExpression2
    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
Note: See TracChangeset for help on using the changeset viewer.