mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-04 11:59:20 +01:00
Remove variable.other from CSV highlighting
This commit is contained in:
parent
3559079de0
commit
848ceb6f10
12
assets/syntaxes/02_Extra/CSV.sublime-syntax
vendored
12
assets/syntaxes/02_Extra/CSV.sublime-syntax
vendored
@ -16,8 +16,6 @@ contexts:
|
|||||||
fields:
|
fields:
|
||||||
- match: ''
|
- match: ''
|
||||||
push:
|
push:
|
||||||
- field_or_record_separator
|
|
||||||
- field5
|
|
||||||
- field_or_record_separator
|
- field_or_record_separator
|
||||||
- field4
|
- field4
|
||||||
- field_or_record_separator
|
- field_or_record_separator
|
||||||
@ -70,15 +68,11 @@ contexts:
|
|||||||
field3:
|
field3:
|
||||||
- match: ''
|
- match: ''
|
||||||
set:
|
set:
|
||||||
- meta_content_scope: meta.field-3.csv variable.other
|
- meta_content_scope: meta.field-3.csv constant.numeric
|
||||||
- include: field_contents
|
- include: field_contents
|
||||||
field4:
|
field4:
|
||||||
- match: ''
|
- match: ''
|
||||||
set:
|
set:
|
||||||
- meta_content_scope: meta.field-4.csv constant.numeric
|
- meta_content_scope: meta.field-4.csv keyword.operator
|
||||||
- include: field_contents
|
|
||||||
field5:
|
|
||||||
- match: ''
|
|
||||||
set:
|
|
||||||
- meta_content_scope: meta.field-5.csv keyword.operator
|
|
||||||
- include: field_contents
|
- include: field_contents
|
||||||
|
|
||||||
|
24
assets/syntaxes/02_Extra/syntax_test_csv.csv
vendored
24
assets/syntaxes/02_Extra/syntax_test_csv.csv
vendored
@ -8,19 +8,21 @@ Forename,Surname,House No.,Street,City,Postcode
|
|||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^ meta.field-4
|
# ^^^^^^ meta.field-4
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^ meta.field-5
|
# ^^^^ meta.field-1
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^^^ meta.field-1
|
# ^^^^^^^^ meta.field-2
|
||||||
John,Doe,87,Citiville,TU43 6GH
|
John,Doe,87,Logon Road,Citiville,TU43 6GH
|
||||||
#^^^ meta.field-1
|
#^^^ meta.field-1
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^ meta.field-2
|
# ^^^ meta.field-2
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^ meta.field-3
|
# ^^ meta.field-3
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^^^^ meta.field-4
|
# ^^^^^^^^^^ meta.field-4
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^^^ meta.field-5
|
# ^^^^^^^^^ meta.field-1
|
||||||
|
# ^ punctuation.separator.sequence
|
||||||
|
# ^^^^^^^^ meta.field-2
|
||||||
Jane,Doe,22,"""Fun"" Street","The City, County",FA90 1XA
|
Jane,Doe,22,"""Fun"" Street","The City, County",FA90 1XA
|
||||||
#^^^ meta.field-1
|
#^^^ meta.field-1
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
@ -32,11 +34,11 @@ Jane,Doe,22,"""Fun"" Street","The City, County",FA90 1XA
|
|||||||
# ^^ constant.character.escape
|
# ^^ constant.character.escape
|
||||||
# ^^ constant.character.escape
|
# ^^ constant.character.escape
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^ meta.field-5 string.quoted.double punctuation.definition.string.begin
|
# ^ meta.field-1 string.quoted.double punctuation.definition.string.begin
|
||||||
# ^^^^^^^^^^^^^^^^^ meta.field-5 string.quoted.double
|
# ^^^^^^^^^^^^^^^^^ meta.field-1 string.quoted.double
|
||||||
# ^ meta.field-5 string.quoted.double punctuation.definition.string.end
|
# ^ meta.field-1 string.quoted.double punctuation.definition.string.end
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^^^ meta.field-1
|
# ^^^^^^^^ meta.field-2
|
||||||
Fred,Bloggs,"19","Street
|
Fred,Bloggs,"19","Street
|
||||||
#^^^ meta.field-1
|
#^^^ meta.field-1
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
@ -53,6 +55,6 @@ Lines",Citee,P0stc0d3
|
|||||||
#^^^^^ meta.field-4 string.quoted.double
|
#^^^^^ meta.field-4 string.quoted.double
|
||||||
# ^ meta.field-4 punctuation.definition.string.end
|
# ^ meta.field-4 punctuation.definition.string.end
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^ meta.field-5
|
# ^^^^^ meta.field-1
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^^^ meta.field-1
|
# ^^^^^^^^ meta.field-2
|
||||||
|
Can't render this file because it contains an unexpected character in line 1 and column 15.
|
24
assets/syntaxes/02_Extra/syntax_test_tsv.tsv
vendored
24
assets/syntaxes/02_Extra/syntax_test_tsv.tsv
vendored
@ -8,19 +8,21 @@ Forename Surname House No. Street City Postcode
|
|||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^ meta.field-4
|
# ^^^^^^ meta.field-4
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^ meta.field-5
|
# ^^^^ meta.field-1
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^^^ meta.field-1
|
# ^^^^^^^^ meta.field-2
|
||||||
John Doe 87 Citiville TU43 6GH
|
John Doe 87 Logon Road Citiville TU43 6GH
|
||||||
#^^^ meta.field-1
|
#^^^ meta.field-1
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^ meta.field-2
|
# ^^^ meta.field-2
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^ meta.field-3
|
# ^^ meta.field-3
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^^^^ meta.field-4
|
# ^^^^^^^^^^ meta.field-4
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^^^ meta.field-5
|
# ^^^^^^^^^ meta.field-1
|
||||||
|
# ^ punctuation.separator.sequence
|
||||||
|
# ^^^^^^^^ meta.field-2
|
||||||
Jane Doe 22 """Fun"" Street" "The City County" FA90 1XA
|
Jane Doe 22 """Fun"" Street" "The City County" FA90 1XA
|
||||||
#^^^ meta.field-1
|
#^^^ meta.field-1
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
@ -32,11 +34,11 @@ Jane Doe 22 """Fun"" Street" "The City County" FA90 1XA
|
|||||||
# ^^ constant.character.escape
|
# ^^ constant.character.escape
|
||||||
# ^^ constant.character.escape
|
# ^^ constant.character.escape
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^ meta.field-5 string.quoted.double punctuation.definition.string.begin
|
# ^ meta.field-1 string.quoted.double punctuation.definition.string.begin
|
||||||
# ^^^^^^^^^^^^^^^^^ meta.field-5 string.quoted.double
|
# ^^^^^^^^^^^^^^^^^ meta.field-1 string.quoted.double
|
||||||
# ^ meta.field-5 string.quoted.double punctuation.definition.string.end
|
# ^ meta.field-1 string.quoted.double punctuation.definition.string.end
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^^^ meta.field-1
|
# ^^^^^^^^ meta.field-2
|
||||||
Fred Bloggs "19" "Street
|
Fred Bloggs "19" "Street
|
||||||
#^^^ meta.field-1
|
#^^^ meta.field-1
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
@ -53,6 +55,6 @@ Lines" Citee P0stc0d3
|
|||||||
#^^^^^ meta.field-4 string.quoted.double
|
#^^^^^ meta.field-4 string.quoted.double
|
||||||
# ^ meta.field-4 punctuation.definition.string.end
|
# ^ meta.field-4 punctuation.definition.string.end
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^ meta.field-5
|
# ^^^^^ meta.field-1
|
||||||
# ^ punctuation.separator.sequence
|
# ^ punctuation.separator.sequence
|
||||||
# ^^^^^^^^ meta.field-1
|
# ^^^^^^^^ meta.field-2
|
||||||
|
Can't render this file because it contains an unexpected character in line 1 and column 15.
|
@ -1,7 +1,7 @@
|
|||||||
[3;38;2;166;226;46mfirst[0m[38;2;253;151;31m,[0m[38;2;102;217;239mlast[0m[38;2;253;151;31m,[0m[38;2;255;255;255maddress[0m[38;2;253;151;31m,[0m[38;2;190;132;255mcity[0m[38;2;253;151;31m,[0m[38;2;249;38;114mzip[0m
|
[3;38;2;166;226;46mfirst[0m[38;2;253;151;31m,[0m[38;2;102;217;239mlast[0m[38;2;253;151;31m,[0m[38;2;190;132;255maddress[0m[38;2;253;151;31m,[0m[38;2;249;38;114mcity[0m[38;2;253;151;31m,[0m[3;38;2;166;226;46mzip[0m
|
||||||
[3;38;2;166;226;46mJohn[0m[38;2;253;151;31m,[0m[38;2;102;217;239mDoe[0m[38;2;253;151;31m,[0m[38;2;255;255;255m120 any st.[0m[38;2;253;151;31m,[0m[38;2;230;219;116m"[0m[38;2;230;219;116mAnytown, WW[0m[38;2;230;219;116m"[0m[38;2;253;151;31m,[0m[38;2;249;38;114m08123[0m
|
[3;38;2;166;226;46mJohn[0m[38;2;253;151;31m,[0m[38;2;102;217;239mDoe[0m[38;2;253;151;31m,[0m[38;2;190;132;255m120 any st.[0m[38;2;253;151;31m,[0m[38;2;230;219;116m"[0m[38;2;230;219;116mAnytown, WW[0m[38;2;230;219;116m"[0m[38;2;253;151;31m,[0m[3;38;2;166;226;46m08123[0m
|
||||||
[3;38;2;166;226;46ma[0m[38;2;253;151;31m,[0m[38;2;102;217;239mb[0m
|
[3;38;2;166;226;46ma[0m[38;2;253;151;31m,[0m[38;2;102;217;239mb[0m
|
||||||
[3;38;2;166;226;46m1[0m[38;2;253;151;31m,[0m[38;2;230;219;116m"[0m[38;2;230;219;116mha [0m
|
[3;38;2;166;226;46m1[0m[38;2;253;151;31m,[0m[38;2;230;219;116m"[0m[38;2;230;219;116mha [0m
|
||||||
[38;2;190;132;255m""[0m[38;2;230;219;116mha[0m[38;2;190;132;255m""[0m[38;2;230;219;116m [0m
|
[38;2;190;132;255m""[0m[38;2;230;219;116mha[0m[38;2;190;132;255m""[0m[38;2;230;219;116m [0m
|
||||||
[38;2;230;219;116mha[0m[38;2;230;219;116m"[0m[38;2;253;151;31m,[0m[38;2;255;255;255m120 any st.[0m[38;2;253;151;31m,[0m[38;2;230;219;116m"[0m[38;2;230;219;116mAnytown, WW[0m[38;2;230;219;116m"[0m[38;2;253;151;31m,[0m[38;2;249;38;114m08123[0m
|
[38;2;230;219;116mha[0m[38;2;230;219;116m"[0m[38;2;253;151;31m,[0m[38;2;190;132;255m120 any st.[0m[38;2;253;151;31m,[0m[38;2;230;219;116m"[0m[38;2;230;219;116mAnytown, WW[0m[38;2;230;219;116m"[0m[38;2;253;151;31m,[0m[3;38;2;166;226;46m08123[0m
|
||||||
[3;38;2;166;226;46m3[0m[38;2;253;151;31m,[0m[38;2;102;217;239m4[0m[38;2;253;151;31m,[0m[38;2;255;255;255m120 any st.[0m[38;2;253;151;31m,[0m[38;2;230;219;116m"[0m[38;2;230;219;116mAnytown, WW[0m[38;2;230;219;116m"[0m[38;2;253;151;31m,[0m[38;2;249;38;114m08123[0m
|
[3;38;2;166;226;46m3[0m[38;2;253;151;31m,[0m[38;2;102;217;239m4[0m[38;2;253;151;31m,[0m[38;2;190;132;255m120 any st.[0m[38;2;253;151;31m,[0m[38;2;230;219;116m"[0m[38;2;230;219;116mAnytown, WW[0m[38;2;230;219;116m"[0m[38;2;253;151;31m,[0m[3;38;2;166;226;46m08123[0m
|
||||||
|
Can't render this file because it contains an unexpected character in line 2 and column 177.
|
Loading…
Reference in New Issue
Block a user