annotate runtime/syntax/pamenv.vim @ 30799:ffa5492137c3 v9.0.0734

patch 9.0.0734: cursor position invalid when scrolling with 'smoothscroll' Commit: https://github.com/vim/vim/commit/2fbabd238a94022c99506e920186a5b6cdf15426 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 12 19:53:38 2022 +0100 patch 9.0.0734: cursor position invalid when scrolling with 'smoothscroll' Problem: Cursor position invalid when scrolling with 'smoothscroll' set. (Ernie Rael) Solution: Add w_valid_skipcol and clear flags when it changes. Adjust w_skipcol after moving the cursor.
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Oct 2022 21:00:05 +0200
parents 7f88f6a3ed4c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20379
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: pam_env.conf(5) configuration file
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Latest Revision: 2020-05-10
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 if exists("b:current_syntax")
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 finish
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 endif
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 syn keyword pamenvTodo contained TODO FIXME XXX NOTE
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 syn region pamenvComment start='^#' end='$' display oneline contains=pamenvTodo,@Spells
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 syn match pamenvVars '^[A-Z_][A-Z_0-9]*' nextgroup=pamenvKeywords skipwhite
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 syn keyword pamenvKeywords contained DEFAULT OVERRIDE nextgroup=pamenvVarEq
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 syn match pamenvVarEq contained '=' nextgroup=pamenvValue,pamenvValueWithQuote
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 syn match pamenvValue contained '[^ \t]*' skipwhite nextgroup=pamenvKeywords
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 syn region pamenvValueWithQuote contained start='"' end='"' skipwhite nextgroup=pamenvKeywords
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 hi def link pamenvTodo Todo
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 hi def link pamenvComment Comment
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 hi def link pamenvKeywords Keyword
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 hi def link pamenvVars Identifier
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 hi def link pamenvValue String
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 hi def link pamenvValueWithQuote String
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27
7f88f6a3ed4c Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 let b:current_syntax = "pamenv"