From e7dc99f982233ce9082829976fedc3922e0251af Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Tue, 27 Aug 2024 14:44:08 -0700 Subject: [PATCH] Fix CSV file extensions and syntax scopes Changes the syntax scope to `text.csv.*`, e.g. `text.csv.rbcstn44` instead of the unusual `text.rbcstn44`. (What is a "rbcstn44" file, anyway?) Also sets the file extensions, allowing the FileIcons package to work. Closes #34 --- auto_syntax.py | 25 +++++++++++++------ main.py | 2 +- .../CSV (Rainbow).sublime-syntax | 4 +-- .../Rainbow_CSV_hex_20_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_21_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_22_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_23_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_24_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_25_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_26_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_27_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_28_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_29_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_2a_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_2b_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_2c_Simple.sublime-syntax | 2 +- ...inbow_CSV_hex_2c_quoted_rfc.sublime-syntax | 2 +- .../Rainbow_CSV_hex_2d_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_2e_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_2f_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_3a_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_3b_Simple.sublime-syntax | 2 +- ...Rainbow_CSV_hex_3b_Standard.sublime-syntax | 2 +- ...inbow_CSV_hex_3b_quoted_rfc.sublime-syntax | 2 +- .../Rainbow_CSV_hex_3c_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_3d_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_3e_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_3f_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_40_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_5b_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_5c_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_5d_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_5e_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_5f_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_60_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_7b_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_7c_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_7d_Simple.sublime-syntax | 2 +- .../Rainbow_CSV_hex_7e_Simple.sublime-syntax | 2 +- .../TSV (Rainbow).sublime-syntax | 4 +-- 40 files changed, 58 insertions(+), 49 deletions(-) diff --git a/auto_syntax.py b/auto_syntax.py index 6568a64..a2603ea 100755 --- a/auto_syntax.py +++ b/auto_syntax.py @@ -3,8 +3,8 @@ legacy_syntax_names = { - ('\t', 'simple'): 'TSV (Rainbow)', - (',', 'quoted'): 'CSV (Rainbow)' + ('\t', 'simple'): ('TSV (Rainbow)', 'tsv'), + (',', 'quoted'): ('CSV (Rainbow)', 'csv'), } @@ -20,17 +20,24 @@ def decode_delim(delim): def get_syntax_file_basename(delim, policy): - for k, v in legacy_syntax_names.items(): + for k, (v, _ext) in legacy_syntax_names.items(): if (delim, policy) == k: return v + '.sublime-syntax' return 'Rainbow_CSV_hex_{}_{}.sublime-syntax'.format(encode_delim(delim), filename_policy_map[policy]) +def get_syntax_file_ext(delim, policy): + for k, (_v, ext) in legacy_syntax_names.items(): + if k == (delim, policy): + return ext + return None + + simple_header_template = '''%YAML 1.2 --- name: '{}' file_extensions: [{}] -scope: text.{} +scope: text.csv.{} contexts: @@ -44,7 +51,7 @@ def get_syntax_file_basename(delim, policy): --- name: '{}' file_extensions: [{}] -scope: text.{} +scope: text.csv.{} contexts: @@ -90,7 +97,7 @@ def oniguruma_regular_escape(delim): def get_syntax_name(delim, policy): - for k, v in legacy_syntax_names.items(): + for k, (v, _ext) in legacy_syntax_names.items(): if (delim, policy) == k: return v ui_delim = delim.replace('\t', 'tab') @@ -144,7 +151,8 @@ def make_standard_context(delim, context_id, num_contexts, indent=' '): def make_sublime_syntax_simple(delim): scope = 'rbcsmn' + ''.join([str(ord(d)) for d in delim]) name = get_syntax_name(delim, 'simple') - result = simple_header_template.format(yaml_escape(name), scope, scope) + ext = get_syntax_file_ext(delim, 'simple') or scope + result = simple_header_template.format(yaml_escape(name), ext, scope) num_contexts = len(rainbow_scope_names) for context_id in range(num_contexts): result += '\n' @@ -156,7 +164,8 @@ def make_sublime_syntax_standard(delim, policy): assert policy in ['quoted', 'quoted_rfc'] scope = 'rbcstn' + ''.join([str(ord(d)) for d in delim]) name = get_syntax_name(delim, policy) - result = standard_header_template.format(yaml_escape(name), scope, scope) + ext = get_syntax_file_ext(delim, policy) or scope + result = standard_header_template.format(yaml_escape(name), ext, scope) if policy == 'quoted': result += non_rfc_endline_rule num_contexts = len(rainbow_scope_names) diff --git a/main.py b/main.py index ca51c88..9c41c1e 100644 --- a/main.py +++ b/main.py @@ -50,7 +50,7 @@ def get_table_names_path(): return table_names_path_cached -legacy_syntax_names_inv = {v + '.sublime-syntax': k for k, v in auto_syntax.legacy_syntax_names.items()} +legacy_syntax_names_inv = {v + '.sublime-syntax': k for k, (v, _ext) in auto_syntax.legacy_syntax_names.items()} def ensure_syntax_file(delim, policy): diff --git a/pregenerated_grammars/CSV (Rainbow).sublime-syntax b/pregenerated_grammars/CSV (Rainbow).sublime-syntax index 3b67f25..1586a25 100644 --- a/pregenerated_grammars/CSV (Rainbow).sublime-syntax +++ b/pregenerated_grammars/CSV (Rainbow).sublime-syntax @@ -1,8 +1,8 @@ %YAML 1.2 --- name: 'CSV (Rainbow)' -file_extensions: [rbcstn44] -scope: text.rbcstn44 +file_extensions: [csv] +scope: text.csv.rbcstn44 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_20_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_20_Simple.sublime-syntax index 1f2c57c..84b687e 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_20_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_20_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV Simple' file_extensions: [rbcsmn32] -scope: text.rbcsmn32 +scope: text.csv.rbcsmn32 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_21_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_21_Simple.sublime-syntax index db68cac..7870ca7 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_21_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_21_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV ! Simple' file_extensions: [rbcsmn33] -scope: text.rbcsmn33 +scope: text.csv.rbcsmn33 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_22_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_22_Simple.sublime-syntax index a5a3caf..f8950c5 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_22_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_22_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV " Simple' file_extensions: [rbcsmn34] -scope: text.rbcsmn34 +scope: text.csv.rbcsmn34 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_23_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_23_Simple.sublime-syntax index da50840..a6a0b32 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_23_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_23_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV # Simple' file_extensions: [rbcsmn35] -scope: text.rbcsmn35 +scope: text.csv.rbcsmn35 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_24_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_24_Simple.sublime-syntax index 810d5bc..b35b3e2 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_24_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_24_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV $ Simple' file_extensions: [rbcsmn36] -scope: text.rbcsmn36 +scope: text.csv.rbcsmn36 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_25_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_25_Simple.sublime-syntax index c54aa62..785f4a0 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_25_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_25_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV % Simple' file_extensions: [rbcsmn37] -scope: text.rbcsmn37 +scope: text.csv.rbcsmn37 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_26_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_26_Simple.sublime-syntax index 91c973c..4188c2b 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_26_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_26_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV & Simple' file_extensions: [rbcsmn38] -scope: text.rbcsmn38 +scope: text.csv.rbcsmn38 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_27_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_27_Simple.sublime-syntax index 4881c2e..7bcd979 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_27_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_27_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV '' Simple' file_extensions: [rbcsmn39] -scope: text.rbcsmn39 +scope: text.csv.rbcsmn39 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_28_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_28_Simple.sublime-syntax index eb21a4f..78edf57 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_28_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_28_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV ( Simple' file_extensions: [rbcsmn40] -scope: text.rbcsmn40 +scope: text.csv.rbcsmn40 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_29_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_29_Simple.sublime-syntax index dba00ed..b8f4ef0 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_29_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_29_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV ) Simple' file_extensions: [rbcsmn41] -scope: text.rbcsmn41 +scope: text.csv.rbcsmn41 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_2a_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_2a_Simple.sublime-syntax index c5165d4..daad185 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_2a_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_2a_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV * Simple' file_extensions: [rbcsmn42] -scope: text.rbcsmn42 +scope: text.csv.rbcsmn42 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_2b_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_2b_Simple.sublime-syntax index d18be4a..93bc5bf 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_2b_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_2b_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV + Simple' file_extensions: [rbcsmn43] -scope: text.rbcsmn43 +scope: text.csv.rbcsmn43 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_2c_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_2c_Simple.sublime-syntax index c32c8a7..95f7285 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_2c_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_2c_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV , Simple' file_extensions: [rbcsmn44] -scope: text.rbcsmn44 +scope: text.csv.rbcsmn44 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_2c_quoted_rfc.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_2c_quoted_rfc.sublime-syntax index e63e333..61adfa3 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_2c_quoted_rfc.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_2c_quoted_rfc.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV , RFC' file_extensions: [rbcstn44] -scope: text.rbcstn44 +scope: text.csv.rbcstn44 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_2d_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_2d_Simple.sublime-syntax index 20e3130..3992327 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_2d_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_2d_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV - Simple' file_extensions: [rbcsmn45] -scope: text.rbcsmn45 +scope: text.csv.rbcsmn45 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_2e_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_2e_Simple.sublime-syntax index e9c83ff..9f78e96 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_2e_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_2e_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV . Simple' file_extensions: [rbcsmn46] -scope: text.rbcsmn46 +scope: text.csv.rbcsmn46 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_2f_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_2f_Simple.sublime-syntax index 0dc3684..0461720 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_2f_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_2f_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV / Simple' file_extensions: [rbcsmn47] -scope: text.rbcsmn47 +scope: text.csv.rbcsmn47 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_3a_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_3a_Simple.sublime-syntax index f49e673..5411035 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_3a_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_3a_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV : Simple' file_extensions: [rbcsmn58] -scope: text.rbcsmn58 +scope: text.csv.rbcsmn58 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_3b_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_3b_Simple.sublime-syntax index 7f3aa37..3fec8ef 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_3b_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_3b_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV ; Simple' file_extensions: [rbcsmn59] -scope: text.rbcsmn59 +scope: text.csv.rbcsmn59 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_3b_Standard.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_3b_Standard.sublime-syntax index eb1234d..de1cf09 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_3b_Standard.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_3b_Standard.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV ; Standard' file_extensions: [rbcstn59] -scope: text.rbcstn59 +scope: text.csv.rbcstn59 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_3b_quoted_rfc.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_3b_quoted_rfc.sublime-syntax index 026bac0..b9275e1 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_3b_quoted_rfc.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_3b_quoted_rfc.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV ; RFC' file_extensions: [rbcstn59] -scope: text.rbcstn59 +scope: text.csv.rbcstn59 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_3c_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_3c_Simple.sublime-syntax index 5b869a7..d237f05 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_3c_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_3c_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV < Simple' file_extensions: [rbcsmn60] -scope: text.rbcsmn60 +scope: text.csv.rbcsmn60 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_3d_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_3d_Simple.sublime-syntax index f0628d3..f172e8a 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_3d_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_3d_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV = Simple' file_extensions: [rbcsmn61] -scope: text.rbcsmn61 +scope: text.csv.rbcsmn61 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_3e_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_3e_Simple.sublime-syntax index c59f8e2..7a25d31 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_3e_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_3e_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV > Simple' file_extensions: [rbcsmn62] -scope: text.rbcsmn62 +scope: text.csv.rbcsmn62 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_3f_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_3f_Simple.sublime-syntax index dd8695d..a1cd2be 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_3f_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_3f_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV ? Simple' file_extensions: [rbcsmn63] -scope: text.rbcsmn63 +scope: text.csv.rbcsmn63 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_40_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_40_Simple.sublime-syntax index 495af9f..6cfd28d 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_40_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_40_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV @ Simple' file_extensions: [rbcsmn64] -scope: text.rbcsmn64 +scope: text.csv.rbcsmn64 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_5b_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_5b_Simple.sublime-syntax index 3398db8..300d3c9 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_5b_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_5b_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV [ Simple' file_extensions: [rbcsmn91] -scope: text.rbcsmn91 +scope: text.csv.rbcsmn91 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_5c_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_5c_Simple.sublime-syntax index efd80e7..b254fe8 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_5c_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_5c_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV \ Simple' file_extensions: [rbcsmn92] -scope: text.rbcsmn92 +scope: text.csv.rbcsmn92 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_5d_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_5d_Simple.sublime-syntax index 3a60c72..0e44b9f 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_5d_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_5d_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV ] Simple' file_extensions: [rbcsmn93] -scope: text.rbcsmn93 +scope: text.csv.rbcsmn93 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_5e_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_5e_Simple.sublime-syntax index 23703fb..2fce78a 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_5e_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_5e_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV ^ Simple' file_extensions: [rbcsmn94] -scope: text.rbcsmn94 +scope: text.csv.rbcsmn94 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_5f_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_5f_Simple.sublime-syntax index a4253ca..07c9065 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_5f_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_5f_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV _ Simple' file_extensions: [rbcsmn95] -scope: text.rbcsmn95 +scope: text.csv.rbcsmn95 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_60_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_60_Simple.sublime-syntax index b4e122d..1f57e66 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_60_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_60_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV ` Simple' file_extensions: [rbcsmn96] -scope: text.rbcsmn96 +scope: text.csv.rbcsmn96 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_7b_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_7b_Simple.sublime-syntax index cbc255d..739d0bf 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_7b_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_7b_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV { Simple' file_extensions: [rbcsmn123] -scope: text.rbcsmn123 +scope: text.csv.rbcsmn123 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_7c_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_7c_Simple.sublime-syntax index 26b59e3..8782ed0 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_7c_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_7c_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV | Simple' file_extensions: [rbcsmn124] -scope: text.rbcsmn124 +scope: text.csv.rbcsmn124 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_7d_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_7d_Simple.sublime-syntax index 19e5557..dc9d4c3 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_7d_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_7d_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV } Simple' file_extensions: [rbcsmn125] -scope: text.rbcsmn125 +scope: text.csv.rbcsmn125 contexts: diff --git a/pregenerated_grammars/Rainbow_CSV_hex_7e_Simple.sublime-syntax b/pregenerated_grammars/Rainbow_CSV_hex_7e_Simple.sublime-syntax index f84c782..0fb6d96 100644 --- a/pregenerated_grammars/Rainbow_CSV_hex_7e_Simple.sublime-syntax +++ b/pregenerated_grammars/Rainbow_CSV_hex_7e_Simple.sublime-syntax @@ -2,7 +2,7 @@ --- name: 'Rainbow CSV ~ Simple' file_extensions: [rbcsmn126] -scope: text.rbcsmn126 +scope: text.csv.rbcsmn126 contexts: diff --git a/pregenerated_grammars/TSV (Rainbow).sublime-syntax b/pregenerated_grammars/TSV (Rainbow).sublime-syntax index 8ef3c5f..c9a5fcc 100644 --- a/pregenerated_grammars/TSV (Rainbow).sublime-syntax +++ b/pregenerated_grammars/TSV (Rainbow).sublime-syntax @@ -1,8 +1,8 @@ %YAML 1.2 --- name: 'TSV (Rainbow)' -file_extensions: [rbcsmn9] -scope: text.rbcsmn9 +file_extensions: [tsv] +scope: text.csv.rbcsmn9 contexts: