Feature: PHP allow single quote autocompletion (#6796)
Release Notes: - Added support for single quote autocompletion in PHP ([#6794](https://github.com/zed-industries/zed/issues/6794)). - Added `#` to supported line comments for PHP ([#6794](https://github.com/zed-industries/zed/issues/6794)).
This commit is contained in:
parent
3c3cdecdff
commit
b5c64a128e
1 changed files with 2 additions and 1 deletions
|
@ -1,13 +1,14 @@
|
||||||
name = "PHP"
|
name = "PHP"
|
||||||
path_suffixes = ["php"]
|
path_suffixes = ["php"]
|
||||||
first_line_pattern = '^#!.*php'
|
first_line_pattern = '^#!.*php'
|
||||||
line_comments = ["// "]
|
line_comments = ["// ", "# "]
|
||||||
autoclose_before = ";:.,=}])>"
|
autoclose_before = ";:.,=}])>"
|
||||||
brackets = [
|
brackets = [
|
||||||
{ start = "{", end = "}", close = true, newline = true },
|
{ start = "{", end = "}", close = true, newline = true },
|
||||||
{ start = "[", end = "]", close = true, newline = true },
|
{ start = "[", end = "]", close = true, newline = true },
|
||||||
{ start = "(", end = ")", close = true, newline = true },
|
{ start = "(", end = ")", close = true, newline = true },
|
||||||
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] },
|
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] },
|
||||||
|
{ start = "'", end = "'", close = true, newline = false, not_in = ["string"] },
|
||||||
]
|
]
|
||||||
collapsed_placeholder = "/* ... */"
|
collapsed_placeholder = "/* ... */"
|
||||||
word_characters = ["$"]
|
word_characters = ["$"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue