Mercurial > vim
annotate runtime/syntax/diff.vim @ 26773:80e134cbee4b v8.2.3915
patch 8.2.3915: illegal memory access when completing with invalid bytes
Commit: https://github.com/vim/vim/commit/4b28ba3245df8274303c79429972f9dc9438e4aa
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 27 19:28:37 2021 +0000
patch 8.2.3915: illegal memory access when completing with invalid bytes
Problem: illegal memory access when completing with invalid bytes.
Solution: Avoid going over the end of the completion text.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 27 Dec 2021 20:30:03 +0100 |
parents | 15fa3923cc49 |
children | 4027cefc2aab |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Diff (context or unified) | |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
5239 | 4 " Translations by Jakson Alves de Aquino. |
23466 | 5 " Last Change: 2020 Dec 30 |
7 | 6 |
344 | 7 " Quit when a (custom) syntax file was already loaded |
8 if exists("b:current_syntax") | |
7 | 9 finish |
10 endif | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
11 scriptencoding utf-8 |
7 | 12 |
13 syn match diffOnly "^Only in .*" | |
14 syn match diffIdentical "^Files .* and .* are identical$" | |
15 syn match diffDiffer "^Files .* and .* differ$" | |
16 syn match diffBDiffer "^Binary files .* and .* differ$" | |
17 syn match diffIsA "^File .* is a .* while file .* is a .*" | |
5239 | 18 syn match diffNoEOL "^\\ No newline at end of file .*" |
7 | 19 syn match diffCommon "^Common subdirectories: .*" |
20 | |
6476 | 21 " Disable the translations by setting diff_translations to zero. |
22 if !exists("diff_translations") || diff_translations | |
23 | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
24 " ca |
5239 | 25 syn match diffOnly "^Només a .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
26 syn match diffIdentical "^Els fitxers .* i .* són idèntics$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
27 syn match diffDiffer "^Els fitxers .* i .* difereixen$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
28 syn match diffBDiffer "^Els fitxers .* i .* difereixen$" |
5239 | 29 syn match diffIsA "^El fitxer .* és un .* mentre que el fitxer .* és un .*" |
30 syn match diffNoEOL "^\\ No hi ha cap caràcter de salt de línia al final del fitxer" | |
31 syn match diffCommon "^Subdirectoris comuns: .* i .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
32 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
33 " cs |
5239 | 34 syn match diffOnly "^Pouze v .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
35 syn match diffIdentical "^Soubory .* a .* jsou identické$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
36 syn match diffDiffer "^Soubory .* a .* jsou různé$" |
5239 | 37 syn match diffBDiffer "^Binární soubory .* a .* jsou rozdílné$" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
38 syn match diffBDiffer "^Soubory .* a .* jsou různé$" |
5239 | 39 syn match diffIsA "^Soubor .* je .* pokud soubor .* je .*" |
40 syn match diffNoEOL "^\\ Chybí znak konce řádku na konci souboru" | |
41 syn match diffCommon "^Společné podadresáře: .* a .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
42 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
43 " da |
5239 | 44 syn match diffOnly "^Kun i .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
45 syn match diffIdentical "^Filerne .* og .* er identiske$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
46 syn match diffDiffer "^Filerne .* og .* er forskellige$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
47 syn match diffBDiffer "^Binære filer .* og .* er forskellige$" |
5239 | 48 syn match diffIsA "^Filen .* er en .* mens filen .* er en .*" |
49 syn match diffNoEOL "^\\ Intet linjeskift ved filafslutning" | |
50 syn match diffCommon "^Identiske underkataloger: .* og .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
51 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
52 " de |
5239 | 53 syn match diffOnly "^Nur in .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
54 syn match diffIdentical "^Dateien .* und .* sind identisch.$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
55 syn match diffDiffer "^Dateien .* und .* sind verschieden.$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
56 syn match diffBDiffer "^Binärdateien .* and .* sind verschieden.$" |
5239 | 57 syn match diffBDiffer "^Binärdateien .* und .* sind verschieden.$" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
58 syn match diffIsA "^Datei .* ist ein .* während Datei .* ein .* ist.$" |
5239 | 59 syn match diffNoEOL "^\\ Kein Zeilenumbruch am Dateiende." |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
60 syn match diffCommon "^Gemeinsame Unterverzeichnisse: .* und .*.$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
61 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
62 " el |
5239 | 63 syn match diffOnly "^Μόνο στο .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
64 syn match diffIdentical "^Τα αρχεία .* καί .* είναι πανομοιότυπα$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
65 syn match diffDiffer "^Τα αρχεία .* και .* διαφέρουν$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
66 syn match diffBDiffer "^Τα αρχεία .* και .* διαφέρουν$" |
5239 | 67 syn match diffIsA "^Το αρχείο .* είναι .* ενώ το αρχείο .* είναι .*" |
68 syn match diffNoEOL "^\\ Δεν υπάρχει χαρακτήρας νέας γραμμής στο τέλος του αρχείου" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
69 syn match diffCommon "^Οι υποκατάλογοι .* και .* είναι ταυτόσημοι$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
70 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
71 " eo |
5239 | 72 syn match diffOnly "^Nur en .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
73 syn match diffIdentical "^Dosieroj .* kaj .* estas samaj$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
74 syn match diffDiffer "^Dosieroj .* kaj .* estas malsamaj$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
75 syn match diffBDiffer "^Dosieroj .* kaj .* estas malsamaj$" |
5239 | 76 syn match diffIsA "^Dosiero .* estas .*, dum dosiero .* estas .*" |
77 syn match diffNoEOL "^\\ Mankas linifino ĉe fino de dosiero" | |
78 syn match diffCommon "^Komunaj subdosierujoj: .* kaj .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
79 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
80 " es |
5239 | 81 syn match diffOnly "^Sólo en .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
82 syn match diffIdentical "^Los ficheros .* y .* son idénticos$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
83 syn match diffDiffer "^Los ficheros .* y .* son distintos$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
84 syn match diffBDiffer "^Los ficheros binarios .* y .* son distintos$" |
5239 | 85 syn match diffIsA "^El fichero .* es un .* mientras que el .* es un .*" |
86 syn match diffNoEOL "^\\ No hay ningún carácter de nueva línea al final del fichero" | |
87 syn match diffCommon "^Subdirectorios comunes: .* y .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
88 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
89 " fi |
5239 | 90 syn match diffOnly "^Vain hakemistossa .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
91 syn match diffIdentical "^Tiedostot .* ja .* ovat identtiset$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
92 syn match diffDiffer "^Tiedostot .* ja .* eroavat$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
93 syn match diffBDiffer "^Binääritiedostot .* ja .* eroavat$" |
5239 | 94 syn match diffIsA "^Tiedosto .* on .*, kun taas tiedosto .* on .*" |
95 syn match diffNoEOL "^\\ Ei rivinvaihtoa tiedoston lopussa" | |
96 syn match diffCommon "^Yhteiset alihakemistot: .* ja .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
97 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
98 " fr |
5239 | 99 syn match diffOnly "^Seulement dans .*" |
100 syn match diffIdentical "^Les fichiers .* et .* sont identiques.*" | |
101 syn match diffDiffer "^Les fichiers .* et .* sont différents.*" | |
102 syn match diffBDiffer "^Les fichiers binaires .* et .* sont différents.*" | |
103 syn match diffIsA "^Le fichier .* est un .* alors que le fichier .* est un .*" | |
104 syn match diffNoEOL "^\\ Pas de fin de ligne à la fin du fichier.*" | |
105 syn match diffCommon "^Les sous-répertoires .* et .* sont identiques.*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
106 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
107 " ga |
5239 | 108 syn match diffOnly "^I .* amháin: .*" |
109 syn match diffIdentical "^Is comhionann iad na comhaid .* agus .*" | |
110 syn match diffDiffer "^Tá difríocht idir na comhaid .* agus .*" | |
111 syn match diffBDiffer "^Tá difríocht idir na comhaid .* agus .*" | |
112 syn match diffIsA "^Tá comhad .* ina .* ach tá comhad .* ina .*" | |
113 syn match diffNoEOL "^\\ Gan líne nua ag an chomhadchríoch" | |
114 syn match diffCommon "^Fochomhadlanna i gcoitianta: .* agus .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
115 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
116 " gl |
5239 | 117 syn match diffOnly "^Só en .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
118 syn match diffIdentical "^Os ficheiros .* e .* son idénticos$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
119 syn match diffDiffer "^Os ficheiros .* e .* son diferentes$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
120 syn match diffBDiffer "^Os ficheiros binarios .* e .* son diferentes$" |
5239 | 121 syn match diffIsA "^O ficheiro .* é un .* mentres que o ficheiro .* é un .*" |
122 syn match diffNoEOL "^\\ Non hai un salto de liña na fin da liña" | |
123 syn match diffCommon "^Subdirectorios comúns: .* e .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
124 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
125 " he |
6583 | 126 " ^.* are expansive patterns for long lines, so disabled unless we can match |
127 " some specific hebrew chars | |
128 if search('\%u05d5\|\%u05d1', 'nw', '', 100) | |
129 syn match diffOnly "^.*-ב קר אצמנ .*" | |
130 syn match diffIdentical "^םיהז םניה .*-ו .* םיצבקה$" | |
131 syn match diffDiffer "^הזמ הז םינוש `.*'-ו `.*' םיצבקה$" | |
132 syn match diffBDiffer "^הזמ הז םינוש `.*'-ו `.*' םיירניב םיצבק$" | |
133 syn match diffIsA "^.* .*-ל .* .* תוושהל ןתינ אל$" | |
134 syn match diffNoEOL "^\\ ץבוקה ףוסב השד.-הרוש ות רס." | |
135 syn match diffCommon "^.*-ו .* :תוהז תויקית-תת$" | |
136 endif | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
137 |
5239 | 138 " hr |
139 syn match diffOnly "^Samo u .*" | |
140 syn match diffIdentical "^Datoteke .* i .* su identične$" | |
141 syn match diffDiffer "^Datoteke .* i .* se razlikuju$" | |
142 syn match diffBDiffer "^Binarne datoteke .* i .* se razlikuju$" | |
143 syn match diffIsA "^Datoteka .* je .*, a datoteka .* je .*" | |
144 syn match diffNoEOL "^\\ Nema novog retka na kraju datoteke" | |
145 syn match diffCommon "^Uobičajeni poddirektoriji: .* i .*" | |
146 | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
147 " hu |
5239 | 148 syn match diffOnly "^Csak .* -ben: .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
149 syn match diffIdentical "^.* és .* fájlok azonosak$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
150 syn match diffDiffer "^A(z) .* és a(z) .* fájlok különböznek$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
151 syn match diffBDiffer "^A(z) .* és a(z) .* fájlok különböznek$" |
5239 | 152 syn match diffIsA "^A(z) .* fájl egy .*, viszont a(z) .* fájl egy .*" |
153 syn match diffNoEOL "^\\ Nincs újsor a fájl végén" | |
154 syn match diffCommon "^Közös alkönyvtárak: .* és .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
155 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
156 " id |
5239 | 157 syn match diffOnly "^Hanya dalam .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
158 syn match diffIdentical "^File .* dan .* identik$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
159 syn match diffDiffer "^Berkas .* dan .* berbeda$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
160 syn match diffBDiffer "^File biner .* dan .* berbeda$" |
5239 | 161 syn match diffIsA "^File .* adalah .* sementara file .* adalah .*" |
162 syn match diffNoEOL "^\\ Tidak ada baris-baru di akhir dari berkas" | |
163 syn match diffCommon "^Subdirektori sama: .* dan .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
164 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
165 " it |
5239 | 166 syn match diffOnly "^Solo in .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
167 syn match diffIdentical "^I file .* e .* sono identici$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
168 syn match diffDiffer "^I file .* e .* sono diversi$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
169 syn match diffBDiffer "^I file .* e .* sono diversi$" |
5239 | 170 syn match diffBDiffer "^I file binari .* e .* sono diversi$" |
171 syn match diffIsA "^File .* è un .* mentre file .* è un .*" | |
172 syn match diffNoEOL "^\\ Manca newline alla fine del file" | |
173 syn match diffCommon "^Sottodirectory in comune: .* e .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
174 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
175 " ja |
5239 | 176 syn match diffOnly "^.*だけに発見: .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
177 syn match diffIdentical "^ファイル.*と.*は同一$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
178 syn match diffDiffer "^ファイル.*と.*は違います$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
179 syn match diffBDiffer "^バイナリー・ファイル.*と.*は違います$" |
5239 | 180 syn match diffIsA "^ファイル.*は.*、ファイル.*は.*" |
181 syn match diffNoEOL "^\\ ファイル末尾に改行がありません" | |
182 syn match diffCommon "^共通の下位ディレクトリー: .*と.*" | |
183 | |
184 " ja DiffUtils 3.3 | |
185 syn match diffOnly "^.* のみに存在: .*" | |
186 syn match diffIdentical "^ファイル .* と .* は同一です$" | |
187 syn match diffDiffer "^ファイル .* と .* は異なります$" | |
188 syn match diffBDiffer "^バイナリーファイル .* と.* は異なります$" | |
189 syn match diffIsA "^ファイル .* は .* です。一方、ファイル .* は .* です$" | |
190 syn match diffNoEOL "^\\ ファイル末尾に改行がありません" | |
191 syn match diffCommon "^共通のサブディレクトリー: .* と .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
192 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
193 " lv |
5239 | 194 syn match diffOnly "^Tikai iekš .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
195 syn match diffIdentical "^Fails .* un .* ir identiski$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
196 syn match diffDiffer "^Faili .* un .* atšķiras$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
197 syn match diffBDiffer "^Faili .* un .* atšķiras$" |
5239 | 198 syn match diffBDiffer "^Binārie faili .* un .* atšķiras$" |
199 syn match diffIsA "^Fails .* ir .* kamēr fails .* ir .*" | |
200 syn match diffNoEOL "^\\ Nav jaunu rindu faila beigās" | |
201 syn match diffCommon "^Kopējās apakšdirektorijas: .* un .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
202 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
203 " ms |
5239 | 204 syn match diffOnly "^Hanya dalam .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
205 syn match diffIdentical "^Fail .* dan .* adalah serupa$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
206 syn match diffDiffer "^Fail .* dan .* berbeza$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
207 syn match diffBDiffer "^Fail .* dan .* berbeza$" |
5239 | 208 syn match diffIsA "^Fail .* adalah .* manakala fail .* adalah .*" |
209 syn match diffNoEOL "^\\ Tiada baris baru pada penghujung fail" | |
210 syn match diffCommon "^Subdirektori umum: .* dan .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
211 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
212 " nl |
5239 | 213 syn match diffOnly "^Alleen in .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
214 syn match diffIdentical "^Bestanden .* en .* zijn identiek$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
215 syn match diffDiffer "^Bestanden .* en .* zijn verschillend$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
216 syn match diffBDiffer "^Bestanden .* en .* zijn verschillend$" |
5239 | 217 syn match diffBDiffer "^Binaire bestanden .* en .* zijn verschillend$" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
218 syn match diffIsA "^Bestand .* is een .* terwijl bestand .* een .* is$" |
5239 | 219 syn match diffNoEOL "^\\ Geen regeleindeteken (LF) aan einde van bestand" |
220 syn match diffCommon "^Gemeenschappelijke submappen: .* en .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
221 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
222 " pl |
5239 | 223 syn match diffOnly "^Tylko w .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
224 syn match diffIdentical "^Pliki .* i .* są identyczne$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
225 syn match diffDiffer "^Pliki .* i .* różnią się$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
226 syn match diffBDiffer "^Pliki .* i .* różnią się$" |
5239 | 227 syn match diffBDiffer "^Binarne pliki .* i .* różnią się$" |
228 syn match diffIsA "^Plik .* jest .*, podczas gdy plik .* jest .*" | |
229 syn match diffNoEOL "^\\ Brak znaku nowej linii na końcu pliku" | |
230 syn match diffCommon "^Wspólne podkatalogi: .* i .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
231 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
232 " pt_BR |
5239 | 233 syn match diffOnly "^Somente em .*" |
234 syn match diffOnly "^Apenas em .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
235 syn match diffIdentical "^Os aquivos .* e .* são idênticos$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
236 syn match diffDiffer "^Os arquivos .* e .* são diferentes$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
237 syn match diffBDiffer "^Os arquivos binários .* e .* são diferentes$" |
5239 | 238 syn match diffIsA "^O arquivo .* é .* enquanto o arquivo .* é .*" |
239 syn match diffNoEOL "^\\ Falta o caracter nova linha no final do arquivo" | |
240 syn match diffCommon "^Subdiretórios idênticos: .* e .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
241 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
242 " ro |
5239 | 243 syn match diffOnly "^Doar în .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
244 syn match diffIdentical "^Fişierele .* şi .* sunt identice$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
245 syn match diffDiffer "^Fişierele .* şi .* diferă$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
246 syn match diffBDiffer "^Fişierele binare .* şi .* diferă$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
247 syn match diffIsA "^Fişierul .* este un .* pe când fişierul .* este un .*.$" |
5239 | 248 syn match diffNoEOL "^\\ Nici un element de linie nouă la sfârşitul fişierului" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
249 syn match diffCommon "^Subdirectoare comune: .* şi .*.$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
250 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
251 " ru |
5239 | 252 syn match diffOnly "^Только в .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
253 syn match diffIdentical "^Файлы .* и .* идентичны$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
254 syn match diffDiffer "^Файлы .* и .* различаются$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
255 syn match diffBDiffer "^Файлы .* и .* различаются$" |
5239 | 256 syn match diffIsA "^Файл .* это .*, тогда как файл .* -- .*" |
257 syn match diffNoEOL "^\\ В конце файла нет новой строки" | |
258 syn match diffCommon "^Общие подкаталоги: .* и .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
259 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
260 " sr |
5239 | 261 syn match diffOnly "^Само у .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
262 syn match diffIdentical "^Датотеке „.*“ и „.*“ се подударају$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
263 syn match diffDiffer "^Датотеке .* и .* различите$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
264 syn match diffBDiffer "^Бинарне датотеке .* и .* различите$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
265 syn match diffIsA "^Датотека „.*“ је „.*“ док је датотека „.*“ „.*“$" |
5239 | 266 syn match diffNoEOL "^\\ Без новог реда на крају датотеке" |
267 syn match diffCommon "^Заједнички поддиректоријуми: .* и .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
268 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
269 " sv |
5239 | 270 syn match diffOnly "^Endast i .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
271 syn match diffIdentical "^Filerna .* och .* är lika$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
272 syn match diffDiffer "^Filerna .* och .* skiljer$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
273 syn match diffBDiffer "^Filerna .* och .* skiljer$" |
5239 | 274 syn match diffIsA "^Fil .* är en .* medan fil .* är en .*" |
275 syn match diffBDiffer "^De binära filerna .* och .* skiljer$" | |
276 syn match diffIsA "^Filen .* är .* medan filen .* är .*" | |
277 syn match diffNoEOL "^\\ Ingen nyrad vid filslut" | |
278 syn match diffCommon "^Lika underkataloger: .* och .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
279 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
280 " tr |
5239 | 281 syn match diffOnly "^Yalnızca .*'da: .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
282 syn match diffIdentical "^.* ve .* dosyaları birbirinin aynı$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
283 syn match diffDiffer "^.* ve .* dosyaları birbirinden farklı$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
284 syn match diffBDiffer "^.* ve .* dosyaları birbirinden farklı$" |
5239 | 285 syn match diffBDiffer "^İkili .* ve .* birbirinden farklı$" |
286 syn match diffIsA "^.* dosyası, bir .*, halbuki .* dosyası bir .*" | |
287 syn match diffNoEOL "^\\ Dosya sonunda yenisatır yok." | |
288 syn match diffCommon "^Ortak alt dizinler: .* ve .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
289 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
290 " uk |
5239 | 291 syn match diffOnly "^Лише у .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
292 syn match diffIdentical "^Файли .* та .* ідентичні$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
293 syn match diffDiffer "^Файли .* та .* відрізняються$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
294 syn match diffBDiffer "^Файли .* та .* відрізняються$" |
5239 | 295 syn match diffBDiffer "^Двійкові файли .* та .* відрізняються$" |
296 syn match diffIsA "^Файл .* це .*, тоді як файл .* -- .*" | |
297 syn match diffNoEOL "^\\ Наприкінці файлу немає нового рядка" | |
298 syn match diffCommon "^Спільні підкаталоги: .* та .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
299 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
300 " vi |
5239 | 301 syn match diffOnly "^Chỉ trong .*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
302 syn match diffIdentical "^Hai tập tin .* và .* là bằng nhau.$" |
5239 | 303 syn match diffIdentical "^Cả .* và .* là cùng một tập tin$" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
304 syn match diffDiffer "^Hai tập tin .* và .* là khác nhau.$" |
5239 | 305 syn match diffBDiffer "^Hai tập tin nhị phân .* và .* khác nhau$" |
306 syn match diffIsA "^Tập tin .* là một .* trong khi tập tin .* là một .*.$" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
307 syn match diffBDiffer "^Hai tập tin .* và .* là khác nhau.$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
308 syn match diffIsA "^Tập tin .* là một .* còn tập tin .* là một .*.$" |
5239 | 309 syn match diffNoEOL "^\\ Không có ký tự dòng mới tại kêt thức tập tin." |
310 syn match diffCommon "^Thư mục con chung: .* và .*" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
311 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
312 " zh_CN |
5239 | 313 syn match diffOnly "^只在 .* 存在:.*" |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
314 syn match diffIdentical "^檔案 .* 和 .* 相同$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
315 syn match diffDiffer "^文件 .* 和 .* 不同$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
316 syn match diffBDiffer "^文件 .* 和 .* 不同$" |
5239 | 317 syn match diffIsA "^文件 .* 是.*而文件 .* 是.*" |
318 syn match diffNoEOL "^\\ 文件尾没有 newline 字符" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
319 syn match diffCommon "^.* 和 .* 有共同的子目录$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
320 |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
321 " zh_TW |
5239 | 322 syn match diffOnly "^只在 .* 存在:.*" |
323 syn match diffIdentical "^檔案 .* 和 .* 相同$" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
324 syn match diffDiffer "^檔案 .* 與 .* 不同$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
325 syn match diffBDiffer "^二元碼檔 .* 與 .* 不同$" |
5239 | 326 syn match diffIsA "^檔案 .* 是.*而檔案 .* 是.*" |
327 syn match diffNoEOL "^\\ 檔案末沒有 newline 字元" | |
2486
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
328 syn match diffCommon "^.* 和 .* 有共同的副目錄$" |
075efa5e166d
Add translations in diff syntax. (Jakson A. Aquino)
Bram Moolenaar <bram@vim.org>
parents:
2479
diff
changeset
|
329 |
6476 | 330 endif |
331 | |
2479 | 332 |
7 | 333 syn match diffRemoved "^-.*" |
334 syn match diffRemoved "^<.*" | |
335 syn match diffAdded "^+.*" | |
336 syn match diffAdded "^>.*" | |
337 syn match diffChanged "^! .*" | |
338 | |
339 syn match diffSubname " @@..*"ms=s+3 contained | |
340 syn match diffLine "^@.*" contains=diffSubname | |
341 syn match diffLine "^\<\d\+\>.*" | |
342 syn match diffLine "^\*\*\*\*.*" | |
2479 | 343 syn match diffLine "^---$" |
7 | 344 |
8869
b73f9ed65072
commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents:
6583
diff
changeset
|
345 " Some versions of diff have lines like "#c#" and "#d#" (where # is a number) |
7 | 346 syn match diffLine "^\d\+\(,\d\+\)\=[cda]\d\+\>.*" |
347 | |
5425 | 348 syn match diffFile "^diff\>.*" |
5239 | 349 syn match diffFile "^Index: .*" |
350 syn match diffFile "^==== .*" | |
23466 | 351 |
352 if search('^@@ -\S\+ +\S\+ @@', 'nw', '', 100) | |
353 " unified | |
354 syn match diffOldFile "^--- .*" | |
355 syn match diffNewFile "^+++ .*" | |
356 else | |
357 " context / old style | |
358 syn match diffOldFile "^\*\*\* .*" | |
359 syn match diffNewFile "^--- .*" | |
360 endif | |
7 | 361 |
8869
b73f9ed65072
commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents:
6583
diff
changeset
|
362 " Used by git |
b73f9ed65072
commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents:
6583
diff
changeset
|
363 syn match diffIndexLine "^index \x\x\x\x.*" |
b73f9ed65072
commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents:
6583
diff
changeset
|
364 |
7 | 365 syn match diffComment "^#.*" |
366 | |
367 " Define the default highlighting. | |
344 | 368 " Only used when an item doesn't have highlighting yet |
369 hi def link diffOldFile diffFile | |
370 hi def link diffNewFile diffFile | |
8869
b73f9ed65072
commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents:
6583
diff
changeset
|
371 hi def link diffIndexLine PreProc |
344 | 372 hi def link diffFile Type |
373 hi def link diffOnly Constant | |
374 hi def link diffIdentical Constant | |
375 hi def link diffDiffer Constant | |
376 hi def link diffBDiffer Constant | |
377 hi def link diffIsA Constant | |
378 hi def link diffNoEOL Constant | |
379 hi def link diffCommon Constant | |
380 hi def link diffRemoved Special | |
381 hi def link diffChanged PreProc | |
382 hi def link diffAdded Identifier | |
383 hi def link diffLine Statement | |
384 hi def link diffSubname PreProc | |
385 hi def link diffComment Comment | |
7 | 386 |
387 let b:current_syntax = "diff" | |
388 | |
389 " vim: ts=8 sw=2 |