-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vCard (.VCF
)
#6888
Comments
There seems to be 2 data formats using the
In both cases, they have enough entries to be added to Linguist:
To make the distinction with a heuristic, a simple check of the presence of |
@Alhadis, it seems that Variant Call Format files use 2 Related PR: #4959 ##fileformat=VCFv4.2
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
##INFO=<ID=AC,Number=A,Type=Integer,Description="Total number of alternate alleles in called genotypes">
##INFO=<ID=AF,Number=A,Type=Float,Description="Estimated allele frequency in the range (0,1]">
##INFO=<ID=NS,Number=1,Type=Integer,Description="Number of samples with data">
##INFO=<ID=AN,Number=1,Type=Integer,Description="Total number of alleles in called genotypes">
##INFO=<ID=LV,Number=1,Type=Integer,Description="Level in the snarl tree (0=top level)">
##INFO=<ID=PS,Number=1,Type=String,Description="ID of variant corresponding to parent snarl">
##INFO=<ID=AT,Number=R,Type=String,Description="Allele Traversal as path in graph">
##contig=<ID=a,length=630>
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT b
a 281 >1>9 AGCCGGGGCAGAAAGTTCTTCCTTGAATGTGGTCATCTGCATTTCAGCTCAGGAATCCTGCAAAAGACAG CTGTCTTTTGCAGGATTCCTGTGCTGAAATGCAGATGACCGCATTCAAGGAAGAACTATCTGCCCCGGCT 60.0 . AC=1;AF=1;AN=1;AT=>1>2>3>4>5>6>7>8>9,>1<8>10<6>11<4>12<2>9;NS=1;LV=0 GT 1 |
I'd suggest adding it to TSV unless it has a unique syntax that necessitates a different grammar for highlighting. |
Syntax highlighting for Variant Call Format files would be OK, but it won't work with the table "preview" mode. The first one below works because there is no comment/metadata using (source) Even with one row starting with
But as soon as there is more than one row at the top of the file starting with
Because all Variant Call Format files have mutliple rows of metadata at the start, the table preview will never work if we just add it to the list of extensions for TSV. |
Language name
vCard
URL of example repository
https://github.com/search?q=repo%3AFolkerKinzel%2FVCards+path%3A*.vcf&type=code#:~:text=BEGIN:VCARD,7%09VERSION:3.0 or https://github.com/kewisch/ical.js/blob/a981f07851f0470f9014710b1d66d82859506f7b/test/parser/vcard.vcf#L1-L34:~:text=BEGIN:VCARD,END:VCARD
URL of syntax highlighting grammar
https://github.com/fox-projects/vscode-assorted-languages/blob/a7e1b5ae1b2c861e68e736cb0e83b451ae9a39b8/syntaxes/vcard.tmLanguage.json#L1-L79:~:text=/-,vcard,-.tmLanguage.json
Most popular extensions
https://github.com/fox-projects/vscode-assorted-languages/blob/2e11eda0254def6d2a38a4873ae4c71650cc36cb/README.md#usage
Detected language
Seemingly
text/plain
.The text was updated successfully, but these errors were encountered: