Skip to content

Commit d66eecf

Browse files
committed
Elixir: no ~L'' for ST3.
1 parent 2ad11fe commit d66eecf

File tree

1 file changed

+2
-77
lines changed

1 file changed

+2
-77
lines changed

Elixir.sublime-syntax

+2-77
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ contexts:
904904
2: string.quoted.modifiers.elixir storage.type.string.elixir
905905
pop: true
906906

907-
- match: ~L(?=["'])(?!''')
907+
- match: ~L(?=""")
908908
comment: LiveView
909909
scope: meta.string.elixir storage.type.string.elixir
910910
push:
@@ -926,28 +926,6 @@ contexts:
926926
with_prototype:
927927
- match: (?=^(?>\\.|[^"])*?""")
928928
pop: true
929-
- match: \"
930-
scope: punctuation.definition.string.begin.elixir
931-
set:
932-
- meta_scope: meta.string.elixir
933-
- include: string_closing_dquote
934-
- match: ''
935-
push: scope:text.html.eex
936-
with_prototype:
937-
- match: \\"
938-
- match: (?=")
939-
pop: true
940-
- match: \'
941-
scope: punctuation.definition.string.begin.elixir
942-
set:
943-
- meta_scope: meta.string.elixir
944-
- include: string_closing_squote
945-
- match: ''
946-
push: scope:text.html.eex
947-
with_prototype:
948-
- match: \\'
949-
- match: (?=')
950-
pop: true
951929

952930
- match: ~y(?=""")
953931
comment: YAML with interpolation
@@ -990,7 +968,7 @@ contexts:
990968
- match: (?=^(?>\\.|[^"])*?""")
991969
pop: true
992970

993-
- match: ~j(?=["'])(?!''')
971+
- match: ~j(?=")
994972
comment: JSON with interpolation
995973
scope: meta.string.elixir storage.type.string.elixir
996974
push:
@@ -1021,59 +999,6 @@ contexts:
1021999
- include: escaped_or_interpolated
10221000
- match: (?=")
10231001
pop: true
1024-
- match: \'
1025-
scope: punctuation.definition.string.begin.elixir
1026-
set:
1027-
- meta_scope: meta.string.elixir
1028-
- include: string_closing_squote
1029-
- match: ''
1030-
push: scope:source.json
1031-
with_prototype:
1032-
- include: escaped_or_interpolated
1033-
- match: (?=')
1034-
pop: true
1035-
1036-
- match: ~J(?=["'])(?!''')
1037-
comment: JSON raw
1038-
scope: meta.string.elixir storage.type.string.elixir
1039-
push:
1040-
- match: (""")(.*)\n
1041-
captures:
1042-
1: punctuation.definition.string.begin.elixir
1043-
2: invalid.illegal.opening-heredoc.elixir
1044-
set:
1045-
- meta_scope: meta.string.elixir
1046-
- match: (?<=""")
1047-
set: string_modifiers_and_pop
1048-
- match: (?=^(?>\\.|[^"])*?""")
1049-
push: heredoc_string_closing_double_pop
1050-
- match: ''
1051-
push: scope:source.json
1052-
with_prototype:
1053-
- match: (?=^(?>\\.|[^"])*?""")
1054-
pop: true
1055-
- match: \"
1056-
scope: punctuation.definition.string.begin.elixir
1057-
set:
1058-
- meta_scope: meta.string.elixir
1059-
- include: string_closing_dquote
1060-
- match: ''
1061-
push: scope:source.json
1062-
with_prototype:
1063-
- match: \\"
1064-
- match: (?=")
1065-
pop: true
1066-
- match: \'
1067-
scope: punctuation.definition.string.begin.elixir
1068-
set:
1069-
- meta_scope: meta.string.elixir
1070-
- include: string_closing_squote
1071-
- match: ''
1072-
push: scope:source.json
1073-
with_prototype:
1074-
- match: \\'
1075-
- match: (?=')
1076-
pop: true
10771002

10781003
- match: ~r
10791004
comment: regex sigil string with interpolation

0 commit comments

Comments
 (0)