Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed Oct 25, 2017
2 parents bc568ab + e8eae54 commit 912ac19
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
46 changes: 46 additions & 0 deletions syntaxes/jsnap1/root-value.sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
%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)
\s*(=)\s*(`)
captures:
1: keyword.operator.assignment.js.fjsx15
2: >-
string.template.js.fjsx15
punctuation.definition.string.begin.js.fjsx15
set: value-contents
value-contents:
- meta_scope: string.template.js.fjsx15
- match: |
(?x)
\s*(`)
captures:
1: >-
string.template.js.fjsx15
punctuation.definition.string.end.js.fjsx15
pop: true
- match: ""
push:
- include: Packages/Naomi/syntaxes/fjsx15/jsx1.sublime-syntax
- match: ""
pop: true
26 changes: 26 additions & 0 deletions syntaxes/naomi.fjsnap1.sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
%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: Jest Snapshot

file_extensions:
- js.snap

scope: source.js.fjsx15

contexts:
main:
- include: Packages/Naomi/syntaxes/jsnap1/root-value.sublime-syntax
- include: Packages/Naomi/syntaxes/fjsx15/statement-and-expression.sublime-syntax

0 comments on commit 912ac19

Please sign in to comment.