~ubuntu-branches/ubuntu/vivid/vim/vivid

« back to all changes in this revision

Viewing changes to runtime/syntax/lhaskell.vim

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2008-11-05 11:37:43 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081105113743-9i4urcsm3n44mhqe
Tags: 2:7.2.025-2ubuntu1
* Merge from debian unstable, remaining changes:
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/debchangelog.vim:
    + Add "jaunty" to the list of valid suites.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Create a .pot file for translations.
  - Disable autoindent, line-wrapping, and backup files by default.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
"                       \begin{code} \end{code} blocks
5
5
" Maintainer:           Haskell Cafe mailinglist <haskell-cafe@haskell.org>
6
6
" Original Author:      Arthur van Leeuwen <arthurvl@cs.uu.nl>
7
 
" Last Change:          2004 Aug 31
8
 
" Version:              1.01
 
7
" Last Change:          2008 Jul 01
 
8
" Version:              1.02
9
9
"
10
10
" Thanks to Ian Lynagh for thoughtful comments on initial versions and
11
11
" for the inspiration for writing this in the first place.
29
29
" 2004 February 20: Cleaned up the guessing and overriding a bit
30
30
" 2004 February 23: Cleaned up syntax highlighting for \begin{code} and
31
31
"                   \end{code}, added some clarification to the attributions
 
32
" 2008 July 1:      Removed % from guess list, as it totally breaks  plain
 
33
"                   text markup guessing
32
34
"
33
35
 
34
36
 
71
73
"   - \begin{env}       (for env != code)
72
74
"   - \part, \chapter, \section, \subsection, \subsubsection, etc
73
75
if b:lhs_markup == "unknown"
74
 
    if search('^%\|\\documentclass\|\\begin{\(code}\)\@!\|\\\(sub\)*section\|\\chapter|\\part','W') != 0
 
76
    if search('\\documentclass\|\\begin{\(code}\)\@!\|\\\(sub \)*section\|\\chapter|\\part','W') != 0
75
77
        let b:lhs_markup = "tex"
76
78
    else
77
79
        let b:lhs_markup = "plain"
78
80
    endif
79
81
endif
80
82
 
81
 
" If user wants us to highlight TeX syntax, read it.
 
83
" If user wants us to highlight TeX syntax or guess thinks it's TeX,  read it.
82
84
if b:lhs_markup == "tex"
83
85
    if version < 600
84
86
        source <sfile>:p:h/tex.vim