summaryrefslogtreecommitdiff
path: root/runtime/syntax/clean.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-24 22:22:18 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-24 22:22:18 +0200
commit56b45b9b37285f9e139b55a4343a03f17187340b (patch)
treee30fadb79fcdd4deeb7f602145cbe1f64269a976 /runtime/syntax/clean.vim
parentdf2bc27b52944fbb75b8203a22f3ebde172e9c79 (diff)
downloadvim-56b45b9b37285f9e139b55a4343a03f17187340b.zip
Update runtime files.
Diffstat (limited to 'runtime/syntax/clean.vim')
-rw-r--r--runtime/syntax/clean.vim10
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/syntax/clean.vim b/runtime/syntax/clean.vim
index 7bdacfc50..11aa028b7 100644
--- a/runtime/syntax/clean.vim
+++ b/runtime/syntax/clean.vim
@@ -2,8 +2,7 @@
" Language: Clean
" Author: Pieter van Engelen <pietere@sci.kun.nl>
" Co-Author: Arthur van Leeuwen <arthurvl@sci.kun.nl>
-" Previous Change: 2011 Dec 25 by Thilo Six
-" Last Change: 2013 Apr 25 by Jurriën Stutterheim
+" Last Change: 2013 Jun 19 by Jurriën Stutterheim
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
@@ -19,7 +18,6 @@ set cpo&vim
" Some Clean-keywords
syn keyword cleanConditional if case
syn keyword cleanLabel let! with where in of
-syn keyword cleanInclude from import qualified
syn keyword cleanSpecial Start
syn keyword cleanKeyword infixl infixr infix
syn keyword cleanBasicType Int Real Char Bool String
@@ -27,6 +25,10 @@ syn keyword cleanSpecialType World ProcId Void Files File
syn keyword cleanModuleSystem module implementation definition system
syn keyword cleanTypeClass class instance export
+" Import highlighting
+syn region cleanIncludeRegion start="^\s*\(from\|import\|\s\+\(as\|qualified\)\)" end="\n" contains=cleanIncludeKeyword keepend
+syn keyword cleanIncludeKeyword contained from import as qualified
+
" To do some Denotation Highlighting
syn keyword cleanBoolDenot True False
syn region cleanStringDenot start=+"+ end=+"+
@@ -75,7 +77,7 @@ if version >= 508 || !exists("did_clean_syntax_init")
HiLink cleanLabel Label
HiLink cleanKeyword Keyword
" Generic Preprocessing
- HiLink cleanInclude Include
+ HiLink cleanIncludeKeyword Include
HiLink cleanModuleSystem PreProc
" Type
HiLink cleanBasicType Type