feat: add CSV, PSV, & TSV

This commit is contained in:
Amaan Qureshi 2023-08-17 04:07:43 -04:00
parent 977e932726
commit 17d3398b5b
7 changed files with 54 additions and 5 deletions

View file

@ -0,0 +1,3 @@
; inherits: tsv
"," @punctuation.delimiter

View file

@ -0,0 +1,3 @@
; inherits: tsv
"|" @punctuation.delimiter

View file

@ -54,11 +54,11 @@
(#eq? @_type "math"))
; TODO: re-add when a parser for csv is added.
; ((directive
; name: (type) @_type
; body: (body (content) @injection.content))
; (#set! injection.language "csv")
; (#eq? @_type "csv-table"))
((directive
name: (type) @_type
body: (body (content) @injection.content))
(#set! injection.language "csv")
(#eq? @_type "csv-table"))
;; Special roles - prefix

View file

@ -0,0 +1,4 @@
(text) @string
(number) @number
(float) @float
(boolean) @boolean