From cd5f44e153d5bb6ac24df85636f196b63e0cff46 Mon Sep 17 00:00:00 2001 From: Alexandre Borela Date: Wed, 3 Jan 2018 20:56:54 -0200 Subject: [PATCH] Drop JSON and XML --- syntaxes/json1/comment.no-pop.sublime-syntax | 26 ------ syntaxes/json1/comment.sublime-syntax | 51 ---------- syntaxes/json1/constant.sublime-syntax | 34 ------- syntaxes/json1/literal/array.sublime-syntax | 43 --------- syntaxes/json1/literal/number.sublime-syntax | 69 -------------- .../literal/object/level-1.sublime-syntax | 78 ---------------- .../literal/object/level-2.sublime-syntax | 77 --------------- .../literal/object/level-3.sublime-syntax | 77 --------------- .../literal/object/level-4.sublime-syntax | 77 --------------- .../literal/object/level-5.sublime-syntax | 77 --------------- .../literal/object/level-6.sublime-syntax | 77 --------------- .../literal/object/level-7.sublime-syntax | 77 --------------- syntaxes/json1/literal/string.sublime-syntax | 67 ------------- syntaxes/naomi.json1.sublime-syntax | 30 ------ syntaxes/naomi.xml1.sublime-syntax | 37 -------- syntaxes/xml1/attribute.sublime-syntax | 23 ----- syntaxes/xml1/attribute/normal.sublime-syntax | 32 ------- syntaxes/xml1/attribute/value.sublime-syntax | 29 ------ syntaxes/xml1/element.sublime-syntax | 26 ------ .../xml1/element/attributes.sublime-syntax | 26 ------ syntaxes/xml1/element/cdata.sublime-syntax | 45 --------- syntaxes/xml1/element/comment.sublime-syntax | 46 --------- syntaxes/xml1/element/content.sublime-syntax | 26 ------ syntaxes/xml1/element/doctype.sublime-syntax | 33 ------- syntaxes/xml1/element/normal.sublime-syntax | 93 ------------------- syntaxes/xml1/element/prolog.sublime-syntax | 43 --------- .../string/double-quoted.sublime-syntax | 32 ------- .../string/single-quoted.sublime-syntax | 32 ------- 28 files changed, 1383 deletions(-) delete mode 100644 syntaxes/json1/comment.no-pop.sublime-syntax delete mode 100644 syntaxes/json1/comment.sublime-syntax delete mode 100644 syntaxes/json1/constant.sublime-syntax delete mode 100644 syntaxes/json1/literal/array.sublime-syntax delete mode 100644 syntaxes/json1/literal/number.sublime-syntax delete mode 100644 syntaxes/json1/literal/object/level-1.sublime-syntax delete mode 100644 syntaxes/json1/literal/object/level-2.sublime-syntax delete mode 100644 syntaxes/json1/literal/object/level-3.sublime-syntax delete mode 100644 syntaxes/json1/literal/object/level-4.sublime-syntax delete mode 100644 syntaxes/json1/literal/object/level-5.sublime-syntax delete mode 100644 syntaxes/json1/literal/object/level-6.sublime-syntax delete mode 100644 syntaxes/json1/literal/object/level-7.sublime-syntax delete mode 100644 syntaxes/json1/literal/string.sublime-syntax delete mode 100644 syntaxes/naomi.json1.sublime-syntax delete mode 100644 syntaxes/naomi.xml1.sublime-syntax delete mode 100644 syntaxes/xml1/attribute.sublime-syntax delete mode 100644 syntaxes/xml1/attribute/normal.sublime-syntax delete mode 100644 syntaxes/xml1/attribute/value.sublime-syntax delete mode 100644 syntaxes/xml1/element.sublime-syntax delete mode 100644 syntaxes/xml1/element/attributes.sublime-syntax delete mode 100644 syntaxes/xml1/element/cdata.sublime-syntax delete mode 100644 syntaxes/xml1/element/comment.sublime-syntax delete mode 100644 syntaxes/xml1/element/content.sublime-syntax delete mode 100644 syntaxes/xml1/element/doctype.sublime-syntax delete mode 100644 syntaxes/xml1/element/normal.sublime-syntax delete mode 100644 syntaxes/xml1/element/prolog.sublime-syntax delete mode 100644 syntaxes/xml1/literal/string/double-quoted.sublime-syntax delete mode 100644 syntaxes/xml1/literal/string/single-quoted.sublime-syntax diff --git a/syntaxes/json1/comment.no-pop.sublime-syntax b/syntaxes/json1/comment.no-pop.sublime-syntax deleted file mode 100644 index 4772b82c..00000000 --- a/syntaxes/json1/comment.no-pop.sublime-syntax +++ /dev/null @@ -1,26 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: | - (?x) - (?=(?>\/\/|\/\*|\#)) - push: - - include: Packages/Naomi/syntaxes/json1/comment.sublime-syntax diff --git a/syntaxes/json1/comment.sublime-syntax b/syntaxes/json1/comment.sublime-syntax deleted file mode 100644 index 570898b2..00000000 --- a/syntaxes/json1/comment.sublime-syntax +++ /dev/null @@ -1,51 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\/\/|\#) - captures: - 1: punctuation.definition.comment.begin.json.json1 - set: line - - match: \s*(\/\*) - captures: - 1: punctuation.definition.comment.begin.json.json1 - set: block - - line: - - meta_scope: comment.line.json.json1 - - include: email - - include: link - - match: \s*$ - pop: true - - block: - - meta_scope: comment.block.json.json1 - - include: email - - include: link - - match: \s*(\*\/) - captures: - 1: punctuation.comment.end.json.json1 - pop: true - - link: - - include: Packages/Naomi/syntaxes/shared/link.sublime-syntax - - email: - - include: Packages/Naomi/syntaxes/shared/email.sublime-syntax diff --git a/syntaxes/json1/constant.sublime-syntax b/syntaxes/json1/constant.sublime-syntax deleted file mode 100644 index 7d6b79a9..00000000 --- a/syntaxes/json1/constant.sublime-syntax +++ /dev/null @@ -1,34 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: | - (?xi) - (?> false - | Infinity - | NaN - | null - | true - | undefined - ) - scope: >- - support.json.json1 - entity.name.constant.json.json1 - pop: true diff --git a/syntaxes/json1/literal/array.sublime-syntax b/syntaxes/json1/literal/array.sublime-syntax deleted file mode 100644 index 14004337..00000000 --- a/syntaxes/json1/literal/array.sublime-syntax +++ /dev/null @@ -1,43 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\[) - scope: punctuation.definition.array.begin.json.json1 - set: items - - items: - - match: \s*(\,) - captures: - 1: punctuation.definition.array.json.json1 - - match: \s*(\]) - captures: - 1: punctuation.definition.array.end.json.json1 - pop: true - - match: "" - push: - - include: Packages/Naomi/syntaxes/json1/comment.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/constant.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/number.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/array.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/object/level-1.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - match: "" - pop: true diff --git a/syntaxes/json1/literal/number.sublime-syntax b/syntaxes/json1/literal/number.sublime-syntax deleted file mode 100644 index 298ed272..00000000 --- a/syntaxes/json1/literal/number.sublime-syntax +++ /dev/null @@ -1,69 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -variables: - literalDecimal: | - [0-9]+ - - literalFloat: | - (?> [0-9]*[.]{{literalDecimal}} - | {{literalDecimal}}[.][0-9]* - ) - - scientificNotation: | - ( - (?> {{literalFloat}} - | {{literalDecimal}} - ) - [e][+-]? - {{literalDecimal}} - ) - -contexts: - main: - - include: float - - include: integer - - float: - - match: (?xi)\s*({{scientificNotation}}) - captures: - 1: constant.numeric.float.scientific.json.json1 - pop: true - - match: (?x)\s*({{literalFloat}}) - captures: - 1: constant.numeric.float.json.json1 - pop: true - - integer: - - match: \s*(0b[01]+) - captures: - 1: constant.numeric.binary.json.json1 - pop: true - - match: \s*(0o[0-7]+) - captures: - 1: constant.numeric.octal.json.json1 - pop: true - - match: (?i)\s*(0[x][0-9a-f]+) - captures: - 1: constant.numeric.hex.json.json1 - pop: true - - match: \s*([1-9][0-9]*|0) - captures: - 1: constant.numeric.decimal.json.json1 - pop: true diff --git a/syntaxes/json1/literal/object/level-1.sublime-syntax b/syntaxes/json1/literal/object/level-1.sublime-syntax deleted file mode 100644 index cc65b856..00000000 --- a/syntaxes/json1/literal/object/level-1.sublime-syntax +++ /dev/null @@ -1,78 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\{) - captures: - 1: punctuation.definition.object.begin.json.json1 - set: items - - items: - - meta_scope: >- - level-1.json.json1 - level-a.json.json1 - - include: comment - - match: \s*(,) - captures: - 1: punctuation.definition.object.json.json1 - - match: \s*(\}) - captures: - 1: punctuation.definition.object.end.json.json1 - pop: true - # Value. - - match: \s*(:) - captures: - 1: >- - object.json.json1 - keyword.operator.other.association.json.json1 - push: value - # Key. - - match: (?=\s*") - push: key - - key: - - include: comment - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - value: - - clear_scopes: true - - meta_scope: source.json.json1 - - include: comment - - match: | - (?x) - (?=\s* - (?> , - | \] - | \} - ) - ) - pop: true - - match: "" - push: - - include: Packages/Naomi/syntaxes/json1/constant.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/number.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/array.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/object/level-2.sublime-syntax - - match: "" - pop: true - - comment: - - include: Packages/Naomi/syntaxes/json1/comment.no-pop.sublime-syntax diff --git a/syntaxes/json1/literal/object/level-2.sublime-syntax b/syntaxes/json1/literal/object/level-2.sublime-syntax deleted file mode 100644 index bdb05dc1..00000000 --- a/syntaxes/json1/literal/object/level-2.sublime-syntax +++ /dev/null @@ -1,77 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\{) - captures: - 1: punctuation.definition.object.begin.json.json1 - set: items - - items: - - meta_scope: >- - level-2.json.json1 - level-b.json.json1 - - include: comment - - match: \s*(,) - captures: - 1: punctuation.definition.object.json.json1 - - match: \s*(\}) - captures: - 1: punctuation.definition.object.end.json.json1 - pop: true - # Value. - - match: \s*(:) - captures: - 1: >- - object.json.json1 - keyword.operator.other.association.json.json1 - push: value - # Key. - - match: (?=\s*") - push: key - - key: - - include: comment - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - value: - - clear_scopes: true - - include: comment - - match: | - (?x) - (?=\s* - (?> , - | \] - | \} - ) - ) - pop: true - - match: "" - push: - - include: Packages/Naomi/syntaxes/json1/constant.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/number.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/array.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/object/level-3.sublime-syntax - - match: "" - pop: true - - comment: - - include: Packages/Naomi/syntaxes/json1/comment.no-pop.sublime-syntax diff --git a/syntaxes/json1/literal/object/level-3.sublime-syntax b/syntaxes/json1/literal/object/level-3.sublime-syntax deleted file mode 100644 index bf71dcba..00000000 --- a/syntaxes/json1/literal/object/level-3.sublime-syntax +++ /dev/null @@ -1,77 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\{) - captures: - 1: punctuation.definition.object.begin.json.json1 - set: items - - items: - - meta_scope: >- - level-3.json.json1 - level-a.json.json1 - - include: comment - - match: \s*(,) - captures: - 1: punctuation.definition.object.json.json1 - - match: \s*(\}) - captures: - 1: punctuation.definition.object.end.json.json1 - pop: true - # Value. - - match: \s*(:) - captures: - 1: >- - object.json.json1 - keyword.operator.other.association.json.json1 - push: value - # Key. - - match: (?=\s*") - push: key - - key: - - include: comment - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - value: - - clear_scopes: true - - include: comment - - match: | - (?x) - (?=\s* - (?> , - | \] - | \} - ) - ) - pop: true - - match: "" - push: - - include: Packages/Naomi/syntaxes/json1/constant.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/number.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/array.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/object/level-4.sublime-syntax - - match: "" - pop: true - - comment: - - include: Packages/Naomi/syntaxes/json1/comment.no-pop.sublime-syntax diff --git a/syntaxes/json1/literal/object/level-4.sublime-syntax b/syntaxes/json1/literal/object/level-4.sublime-syntax deleted file mode 100644 index 2f7ce8eb..00000000 --- a/syntaxes/json1/literal/object/level-4.sublime-syntax +++ /dev/null @@ -1,77 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\{) - captures: - 1: punctuation.definition.object.begin.json.json1 - set: items - - items: - - meta_scope: >- - level-4.json.json1 - level-b.json.json1 - - include: comment - - match: \s*(,) - captures: - 1: punctuation.definition.object.json.json1 - - match: \s*(\}) - captures: - 1: punctuation.definition.object.end.json.json1 - pop: true - # Value. - - match: \s*(:) - captures: - 1: >- - object.json.json1 - keyword.operator.other.association.json.json1 - push: value - # Key. - - match: (?=\s*") - push: key - - key: - - include: comment - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - value: - - clear_scopes: true - - include: comment - - match: | - (?x) - (?=\s* - (?> , - | \] - | \} - ) - ) - pop: true - - match: "" - push: - - include: Packages/Naomi/syntaxes/json1/constant.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/number.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/array.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/object/level-5.sublime-syntax - - match: "" - pop: true - - comment: - - include: Packages/Naomi/syntaxes/json1/comment.no-pop.sublime-syntax diff --git a/syntaxes/json1/literal/object/level-5.sublime-syntax b/syntaxes/json1/literal/object/level-5.sublime-syntax deleted file mode 100644 index cfc4498f..00000000 --- a/syntaxes/json1/literal/object/level-5.sublime-syntax +++ /dev/null @@ -1,77 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\{) - captures: - 1: punctuation.definition.object.begin.json.json1 - set: items - - items: - - meta_scope: >- - level-5.json.json1 - level-a.json.json1 - - include: comment - - match: \s*(,) - captures: - 1: punctuation.definition.object.json.json1 - - match: \s*(\}) - captures: - 1: punctuation.definition.object.end.json.json1 - pop: true - # Value. - - match: \s*(:) - captures: - 1: >- - object.json.json1 - keyword.operator.other.association.json.json1 - push: value - # Key. - - match: (?=\s*") - push: key - - key: - - include: comment - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - value: - - clear_scopes: true - - include: comment - - match: | - (?x) - (?=\s* - (?> , - | \] - | \} - ) - ) - pop: true - - match: "" - push: - - include: Packages/Naomi/syntaxes/json1/constant.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/number.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/array.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/object/level-6.sublime-syntax - - match: "" - pop: true - - comment: - - include: Packages/Naomi/syntaxes/json1/comment.no-pop.sublime-syntax diff --git a/syntaxes/json1/literal/object/level-6.sublime-syntax b/syntaxes/json1/literal/object/level-6.sublime-syntax deleted file mode 100644 index a356ae1b..00000000 --- a/syntaxes/json1/literal/object/level-6.sublime-syntax +++ /dev/null @@ -1,77 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\{) - captures: - 1: punctuation.definition.object.begin.json.json1 - set: items - - items: - - meta_scope: >- - level-6.json.json1 - level-b.json.json1 - - include: comment - - match: \s*(,) - captures: - 1: punctuation.definition.object.json.json1 - - match: \s*(\}) - captures: - 1: punctuation.definition.object.end.json.json1 - pop: true - # Value. - - match: \s*(:) - captures: - 1: >- - object.json.json1 - keyword.operator.other.association.json.json1 - push: value - # Key. - - match: (?=\s*") - push: key - - key: - - include: comment - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - value: - - clear_scopes: true - - include: comment - - match: | - (?x) - (?=\s* - (?> , - | \] - | \} - ) - ) - pop: true - - match: "" - push: - - include: Packages/Naomi/syntaxes/json1/constant.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/number.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/array.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/object/level-7.sublime-syntax - - match: "" - pop: true - - comment: - - include: Packages/Naomi/syntaxes/json1/comment.no-pop.sublime-syntax diff --git a/syntaxes/json1/literal/object/level-7.sublime-syntax b/syntaxes/json1/literal/object/level-7.sublime-syntax deleted file mode 100644 index 40fa1f28..00000000 --- a/syntaxes/json1/literal/object/level-7.sublime-syntax +++ /dev/null @@ -1,77 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\{) - captures: - 1: punctuation.definition.object.begin.json.json1 - set: items - - items: - - meta_scope: >- - level-7.json.json1 - level-a.json.json1 - - include: comment - - match: \s*(,) - captures: - 1: punctuation.definition.object.json.json1 - - match: \s*(\}) - captures: - 1: punctuation.definition.object.end.json.json1 - pop: true - # Value. - - match: \s*(:) - captures: - 1: >- - object.json.json1 - keyword.operator.other.association.json.json1 - push: value - # Key. - - match: (?=\s*") - push: key - - key: - - include: comment - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - value: - - clear_scopes: true - - include: comment - - match: | - (?x) - (?=\s* - (?> , - | \] - | \} - ) - ) - pop: true - - match: "" - push: - - include: Packages/Naomi/syntaxes/json1/constant.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/number.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/string.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/array.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/object/level-1.sublime-syntax - - match: "" - pop: true - - comment: - - include: Packages/Naomi/syntaxes/json1/comment.no-pop.sublime-syntax diff --git a/syntaxes/json1/literal/string.sublime-syntax b/syntaxes/json1/literal/string.sublime-syntax deleted file mode 100644 index aa11591f..00000000 --- a/syntaxes/json1/literal/string.sublime-syntax +++ /dev/null @@ -1,67 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -variables: - hexEscapedChar: | - x[a-f0-9]{2} - - unicodeEscapedChar: | - (?> u[a-f0-9]{4} - | u\{[a-f0-9]+\} - ) - - doubleQuotedEscapeSequences: | - \\ - (?> ["\\bfnrtv] - | {{hexEscapedChar}} - | {{unicodeEscapedChar}} - ) - -contexts: - main: - - match: \s*(") - captures: - 1: >- - string.quoted.double.json.json1 - punctuation.definition.string.begin.json.json1 - with_prototype: - - match: (?- - string.quoted.double.json.json1 - punctuation.definition.string.end.json.json1 - pop: true - set: escape-a - - trap: - - meta_content_scope: context.trap - - escape-a: - - meta_content_scope: string.quoted.double.json.json1 - - match: (?xi){{doubleQuotedEscapeSequences}} - scope: constant.character.escape.a.json.json1 - set: escape-b - - escape-b: - - meta_content_scope: string.quoted.double.json.json1 - - match: (?xi){{doubleQuotedEscapeSequences}} - scope: constant.character.escape.b.json.json1 - set: escape-a diff --git a/syntaxes/naomi.json1.sublime-syntax b/syntaxes/naomi.json1.sublime-syntax deleted file mode 100644 index 40fc2569..00000000 --- a/syntaxes/naomi.json1.sublime-syntax +++ /dev/null @@ -1,30 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -name: JSON - -file_extensions: - - json - - package.json - - sublime-keymap - - sublime-macro - -scope: source.json.json1 - -contexts: - main: - - include: Packages/Naomi/syntaxes/json1/comment.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/array.sublime-syntax - - include: Packages/Naomi/syntaxes/json1/literal/object/level-1.sublime-syntax diff --git a/syntaxes/naomi.xml1.sublime-syntax b/syntaxes/naomi.xml1.sublime-syntax deleted file mode 100644 index fdc2e205..00000000 --- a/syntaxes/naomi.xml1.sublime-syntax +++ /dev/null @@ -1,37 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -name: XML 1.0 - -file_extensions: - - dtml - - opml - - rss - - svg - - tld - - tmPreferences - - tmTheme - - sublime-snippet - - xml - - xsd - - xslt - -first_line_match: <\?xml - -scope: text.xml.xml1 - -contexts: - main: - - include: Packages/Naomi/syntaxes/xml1/element.sublime-syntax diff --git a/syntaxes/xml1/attribute.sublime-syntax b/syntaxes/xml1/attribute.sublime-syntax deleted file mode 100644 index 79a9069e..00000000 --- a/syntaxes/xml1/attribute.sublime-syntax +++ /dev/null @@ -1,23 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - include: Packages/Naomi/syntaxes/xml1/attribute/normal.sublime-syntax - - include: Packages/Naomi/syntaxes/xml1/attribute/value.sublime-syntax diff --git a/syntaxes/xml1/attribute/normal.sublime-syntax b/syntaxes/xml1/attribute/normal.sublime-syntax deleted file mode 100644 index 5dd9acfb..00000000 --- a/syntaxes/xml1/attribute/normal.sublime-syntax +++ /dev/null @@ -1,32 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -variables: - commonIdentifier: | - [_:[:alpha:]] - [_:[:alnum:]\-.]* - -contexts: - main: - - match: | - (?xi) - \s*({{commonIdentifier}}) - captures: - 1: entity.name.attribute.xml.xml1 - pop: true diff --git a/syntaxes/xml1/attribute/value.sublime-syntax b/syntaxes/xml1/attribute/value.sublime-syntax deleted file mode 100644 index e288b21f..00000000 --- a/syntaxes/xml1/attribute/value.sublime-syntax +++ /dev/null @@ -1,29 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\=) - captures: - 1: keyword.operator.other.assignment.xml.xml1 - set: value - - value: - - include: Packages/Naomi/syntaxes/xml1/literal/string/double-quoted.sublime-syntax - - include: Packages/Naomi/syntaxes/xml1/literal/string/single-quoted.sublime-syntax diff --git a/syntaxes/xml1/element.sublime-syntax b/syntaxes/xml1/element.sublime-syntax deleted file mode 100644 index 969d2e5b..00000000 --- a/syntaxes/xml1/element.sublime-syntax +++ /dev/null @@ -1,26 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - include: Packages/Naomi/syntaxes/xml1/element/comment.sublime-syntax - - include: Packages/Naomi/syntaxes/xml1/element/prolog.sublime-syntax - - include: Packages/Naomi/syntaxes/xml1/element/doctype.sublime-syntax - - include: Packages/Naomi/syntaxes/xml1/element/cdata.sublime-syntax - - include: Packages/Naomi/syntaxes/xml1/element/normal.sublime-syntax diff --git a/syntaxes/xml1/element/attributes.sublime-syntax b/syntaxes/xml1/element/attributes.sublime-syntax deleted file mode 100644 index 8b7872ab..00000000 --- a/syntaxes/xml1/element/attributes.sublime-syntax +++ /dev/null @@ -1,26 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: "" - push: - - include: Packages/Naomi/syntaxes/xml1/attribute.sublime-syntax - - match: \s* - pop: true diff --git a/syntaxes/xml1/element/cdata.sublime-syntax b/syntaxes/xml1/element/cdata.sublime-syntax deleted file mode 100644 index 9282007f..00000000 --- a/syntaxes/xml1/element/cdata.sublime-syntax +++ /dev/null @@ -1,45 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(- - meta.tag.xml.xml1 - section.cdata.xml.xml1 - punctuation.definition.section.begin.xml.xml1 - 2: >- - meta.tag.xml.xml1 - section.cdata.xml.xml1 - entity.name.cdata.xml.xml1 - 3: >- - meta.tag.xml.xml1 - section.cdata.xml.xml1 - punctuation.definition.section.begin.xml.xml1 - set: content - - content: - - match: \s*(]]>) - captures: - 1: >- - meta.tag.xml.xml1 - section.cdata.xml.xml1 - punctuation.definition.section.end.xml.xml1 - pop: true diff --git a/syntaxes/xml1/element/comment.sublime-syntax b/syntaxes/xml1/element/comment.sublime-syntax deleted file mode 100644 index 5893015c..00000000 --- a/syntaxes/xml1/element/comment.sublime-syntax +++ /dev/null @@ -1,46 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*() - captures: - 1: >- - meta.tag.xml.xml1 - punctuation.comment.end.xml.xml1 - punctuation.definition.tag.end.xml.xml1 - pop: true - - link: - - include: Packages/Naomi/syntaxes/shared/link.sublime-syntax - - email: - - include: Packages/Naomi/syntaxes/shared/email.sublime-syntax diff --git a/syntaxes/xml1/element/content.sublime-syntax b/syntaxes/xml1/element/content.sublime-syntax deleted file mode 100644 index e7bdf26c..00000000 --- a/syntaxes/xml1/element/content.sublime-syntax +++ /dev/null @@ -1,26 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: "" - push: - - include: Packages/Naomi/syntaxes/xml1/element.sublime-syntax - - match: \s* - pop: true diff --git a/syntaxes/xml1/element/doctype.sublime-syntax b/syntaxes/xml1/element/doctype.sublime-syntax deleted file mode 100644 index 359afb2e..00000000 --- a/syntaxes/xml1/element/doctype.sublime-syntax +++ /dev/null @@ -1,33 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*() - captures: - 1: >- - declaration.doctype.xml.xml1 - punctuation.definition.declaration.begin.xml.xml1 - 2: >- - declaration.doctype.xml.xml1 - entity.name.other.xml.xml1 - 3: >- - declaration.doctype.xml.xml1 - punctuation.definition.declaration.end.xml.xml1 - pop: true diff --git a/syntaxes/xml1/element/normal.sublime-syntax b/syntaxes/xml1/element/normal.sublime-syntax deleted file mode 100644 index c65b9be3..00000000 --- a/syntaxes/xml1/element/normal.sublime-syntax +++ /dev/null @@ -1,93 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -variables: - commonIdentifier: | - [_[:alpha:]] - [_[:alnum:]]* - -contexts: - main: - - match: | - (?xi)\s* - (<) - (?={{commonIdentifier}}) - captures: - 1: >- - meta.tag.xml.xml1 - tag.xml.xml1 - punctuation.definition.tag.begin.xml.xml1 - set: tag-name - - tag-name: - - match: | - (?xi)\s* - ({{commonIdentifier}}) - captures: - 1: >- - meta.tag.xml.xml1 - tag.xml.xml1 - entity.name.tag.xml.xml1 - set: [ - content, - attributes - ] - - attributes: - - match: (?=\s*/>) - pop: true - - match: \s*(>) - captures: - 1: >- - meta.tag.xml.xml1 - tag.xml.xml1 - punctuation.definition.tag.end.xml.xml1 - pop: true - - include: Packages/Naomi/syntaxes/xml1/element/attributes.sublime-syntax - - content: - - match: \s*(/>) - captures: - 1: >- - meta.tag.xml.xml1 - tag.xml.xml1 - punctuation.definition.tag.end.xml.xml1 - pop: true - - match: | - (?x)\s* - () - captures: - 1: >- - meta.tag.xml.xml1 - tag.close.xml.xml1 - punctuation.definition.tag.begin.xml.xml1 - 2: >- - meta.tag.xml.xml1 - tag.close.xml.xml1 - entity.name.tag.xml.xml1 - 3: >- - meta.tag.xml.xml1 - tag.close.xml.xml1 - punctuation.definition.tag.end.xml.xml1 - pop: true - - match: "" - push: - - include: Packages/Naomi/syntaxes/xml1/element.sublime-syntax - - match: "" - pop: true diff --git a/syntaxes/xml1/element/prolog.sublime-syntax b/syntaxes/xml1/element/prolog.sublime-syntax deleted file mode 100644 index 221f9157..00000000 --- a/syntaxes/xml1/element/prolog.sublime-syntax +++ /dev/null @@ -1,43 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(<\?)(xml) - captures: - 1: >- - instruction.prolog.xml.xml1 - punctuation.definition.instruction.begin.xml.xml1 - 2: >- - instruction.prolog.xml.xml1 - entity.name.instruction.xml.xml1 - set: prolog - - prolog: - - match: \s*(\?>) - captures: - 1: >- - instruction.prolog.xml.xml1 - punctuation.definition.instruction.end.xml.xml1 - pop: true - - match: "" - push: - - include: Packages/Naomi/syntaxes/xml1/attribute.sublime-syntax - - match: "" - pop: true diff --git a/syntaxes/xml1/literal/string/double-quoted.sublime-syntax b/syntaxes/xml1/literal/string/double-quoted.sublime-syntax deleted file mode 100644 index 7b59043d..00000000 --- a/syntaxes/xml1/literal/string/double-quoted.sublime-syntax +++ /dev/null @@ -1,32 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\") - captures: - 1: punctuation.definition.string.begin.xml.xml1 - set: string - - string: - - meta_scope: string.quoted.double.xml.xml1 - - match: \s*(\") - captures: - 1: punctuation.definition.string.end.xml.xml1 - pop: true diff --git a/syntaxes/xml1/literal/string/single-quoted.sublime-syntax b/syntaxes/xml1/literal/string/single-quoted.sublime-syntax deleted file mode 100644 index ab0f5233..00000000 --- a/syntaxes/xml1/literal/string/single-quoted.sublime-syntax +++ /dev/null @@ -1,32 +0,0 @@ -%YAML1.2 ---- - -# Licensed under the Apache License, Version 2.0 (the “License”); you may not -# use this file except in compliance with the License. You may obtain a copy of -# the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an “AS IS” BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations under -# the License. - -hidden: true - -scope: ... - -contexts: - main: - - match: \s*(\') - captures: - 1: punctuation.definition.string.begin.xml.xml1 - set: string - - string: - - meta_scope: string.quoted.single.xml.xml1 - - match: \s*(\') - captures: - 1: punctuation.definition.string.end.xml.xml1 - pop: true