Skip to content

Commit

Permalink
Merge branch 'st4107'
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed May 31, 2023
2 parents 2e50ef3 + 6e78453 commit bb697c2
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Syntaxes/Slim.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,8 @@ contexts:

ruby-expression:
- meta_scope: meta.embedded.slim source.ruby.rails.embedded.slim
- match: (?=[])}])
pop: 1
- include: ruby-expressions
- include: immediately-pop

Expand Down
48 changes: 48 additions & 0 deletions tests/syntax_test_slim.slim
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,54 @@ div {
/ ^ - meta.embedded
/ ^ punctuation.section.embedded.slim
div[foo=]
/ <- meta.tag.slim entity.name.tag.slim
/^^ meta.tag.slim entity.name.tag.slim
/ ^^^^^^ meta.tag.slim meta.brackets.slim
/ ^ - meta.tag
div[foo=]
div.example
/ ^^^^^^^^^^^ meta.tag.slim
div[foo=()]
/ <- meta.tag.slim entity.name.tag.slim
/^^ meta.tag.slim entity.name.tag.slim
/ ^^^^^^^^ meta.tag.slim meta.brackets.slim
/ ^ - meta.tag
div[foo=()]
div.example
/ ^^^^^^^^^^^ meta.tag.slim
div[foo=("bar" if baz?)]
/ <- meta.tag.slim entity.name.tag.slim
/^^ meta.tag.slim entity.name.tag.slim
/ ^^^^^^^^^^^^^^^^^^^^^ meta.tag.slim meta.brackets.slim
/ ^ - meta.tag
div[foo=("bar" if baz?)]
div.example
/ ^^^^^^^^^^^ meta.tag.slim
div.cls[foo=("bar" if baz?)]
/ <- meta.tag.slim entity.name.tag.slim
/^^^^^^ meta.tag.slim - meta.brackets
/ ^^^^^^^^^^^^^^^^^^^^^ meta.tag.slim meta.brackets.slim
/ ^ - meta.tag
div.cls[foo=("bar" if baz?)]
div.example
/ ^^^^^^^^^^^ meta.tag.slim
div.cls[
foo=(
"bar" if baz?
)
]
div.example
/ ^^^^^^^^^^^ meta.tag.slim
.splat *method_which_returns_hash = place.name
/ <- meta.tag.slim punctuation.definition.attribute.class.slim
/^^^^^^ meta.tag.slim - meta.embedded
Expand Down

0 comments on commit bb697c2

Please sign in to comment.