From 30db674c14cf8cb627f7091f3677e58a3ac656c2 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Thu, 17 Sep 2020 16:11:47 -0700 Subject: [PATCH] TOML: Remove non-open-source grammar (no license) See: - https://github.com/sourcegraph/sourcegraph/issues/13933 - https://github.com/lmno/TOML/issues/4 --- README.md | 1 - TOML/SOURCE | 1 - TOML/TOML.sublime-syntax | 359 --------------------------------------- TOML/VERSION | 1 - 4 files changed, 362 deletions(-) delete mode 100644 TOML/SOURCE delete mode 100644 TOML/TOML.sublime-syntax delete mode 100644 TOML/VERSION diff --git a/README.md b/README.md index 264c8797ea..6e624c0c60 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,6 @@ with different licenses for files generated by following the steps in a director | Directory | License | Source | |-----------------------------------|-----------------------|---------------------------------------------------------------------------------------| | All, except those specified below | MIT + Common License* | [sublimehq/Packages](https://github.com/sublimehq/Packages) | -| TOML/ | [?](https://github.com/lmno/TOML/issues/4) | [slimsag/sublime_toml_highlighting](https://github.com/slimsag/sublime_toml_highlighting) | | INI/ | [?](https://github.com/clintberry/sublime-text-2-ini#credits) | [clintberry/sublime-text-2-ini](https://github.com/clintberry/sublime-text-2-ini) | | GraphQL/ | [?](https://github.com/dncrews/GraphQL-SublimeText3/issues/11) | [dncrews/GraphQL-SublimeText3](https://github.com/dncrews/GraphQL-SublimeText3) | | Kotlin/ | Apache License 2.0 | [vkostyukov/kotlin-sublime-package](https://github.com/vkostyukov/kotlin-sublime-package) | diff --git a/TOML/SOURCE b/TOML/SOURCE deleted file mode 100644 index 469f847eac..0000000000 --- a/TOML/SOURCE +++ /dev/null @@ -1 +0,0 @@ -https://github.com/slimsag/sublime_toml_highlighting diff --git a/TOML/TOML.sublime-syntax b/TOML/TOML.sublime-syntax deleted file mode 100644 index 4f34fab2e2..0000000000 --- a/TOML/TOML.sublime-syntax +++ /dev/null @@ -1,359 +0,0 @@ -%YAML 1.2 ---- -# http://www.sublimetext.com/docs/3/syntax.html -name: TOML - -file_extensions: - - toml - - tml - - Cargo.lock - - Gopkg.lock - -scope: source.toml - -variables: - ws: '[ \t]*' - wsnl: '([ \t\n])*' - - # Used to detect the possible start of a key. - peek_key_start: '(?=[A-Za-z0-9_''"-])' - - # integer = [ "-" / "+" ] int - # int = DIGIT / digit1-9 1*( DIGIT / "_" DIGIT ) - integer: '([\+\-]?) (?: [0-9] | [1-9] (?: [0-9] | _ [0-9] )+ )' - # frac = "." DIGIT *( DIGIT / "_" DIGIT ) - frac: '\. [0-9] (?: [0-9] | _ [0-9] )*' - # exp = ("e" / "E") integer - exp: '[eE] {{integer}}' - - # date-time = offset-date-time / local-date-time / local-date / local-time - date_time: '{{offset_date_time}} | {{local_date_time}} | {{local_date}} | {{local_time}}' - # date-fullyear = 4DIGIT - date_fullyear: '[0-9]{4}' - # date-month = 2DIGIT ; 01-12 - date_month: '[0-1][0-9]' - # date-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on month/year - date_mday: '[0-3][0-9]' - # time-hour = 2DIGIT ; 00-23 - time_hour: '[0-2][0-9]' - # time-minute = 2DIGIT ; 00-59 - time_minute: '[0-5][0-9]' - # time-second = 2DIGIT ; 00-58, 00-59, 00-60 based on leap second rules - time_second: '[0-6][0-9]' - # time-secfrac = "." 1*DIGIT - time_secfrac: '\.[0-9]+' - # time-numoffset = ( "+" / "-" ) time-hour ":" time-minute - time_numoffset: '[+-] {{time_hour}} : {{time_minute}}' - # time-offset = "Z" / time-numoffset - time_offset: '(?: Z | {{time_numoffset}} )' - # partial-time = time-hour ":" time-minute ":" time-second [time-secfrac] - partial_time: '{{time_hour}} : {{time_minute}} : {{time_second}} (?: {{time_secfrac}} )?' - # full-date = date-fullyear "-" date-month "-" date-mday - full_date: '{{date_fullyear}} - {{date_month}} - {{date_mday}}' - # full-time = partial-time time-offset - full_time: '{{partial_time}} {{time_offset}}' - # offset-date-time = full-date "T" full-time - offset_date_time: '{{full_date}} T {{full_time}}' - # local-date-time = full-date "T" partial-time - local_date_time: '{{full_date}} T {{partial_time}}' - # local-date = full-date - local_date: '{{full_date}}' - # local-time = partial-time - local_time: '{{partial_time}}' - -contexts: - main: - - match: '^{{ws}}' - # Ignore leading whitespace for all expressions. - - include: comments - - include: tables - - include: keyval - - include: illegal - - illegal: - - match: (.*) - # Invalid things -> everything unmatched - captures: - 1: invalid.illegal.toml - - comments: - - match: '{{ws}}((#).*)' - captures: - 1: comment.line.number-sign.toml - 2: punctuation.definition.comment.toml - - data-types: - - include: inline-table - - include: array - - include: string - - include: date-time - - include: float - - include: integer - - include: boolean - - match: '{{ws}}$' - # Don't show an incomplete line as invalid to avoid frequent red - # highlighting while typing. - pop: true - - match: '\w+|.' - scope: invalid.illegal.value.toml - pop: true - - boolean: - - match: (true|false) - captures: - 1: constant.language.toml - pop: true - - integer: - - match: '(?x) (?