From b5c64a128e6f6271e919cfead41807ced0891abc Mon Sep 17 00:00:00 2001 From: Remco Smits Date: Fri, 26 Jan 2024 19:16:35 +0100 Subject: [PATCH] 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)). --- crates/zed/src/languages/php/config.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/zed/src/languages/php/config.toml b/crates/zed/src/languages/php/config.toml index 8a143da372..9c6e9b767c 100644 --- a/crates/zed/src/languages/php/config.toml +++ b/crates/zed/src/languages/php/config.toml @@ -1,13 +1,14 @@ name = "PHP" path_suffixes = ["php"] first_line_pattern = '^#!.*php' -line_comments = ["// "] +line_comments = ["// ", "# "] autoclose_before = ";:.,=}])>" brackets = [ { 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"] }, ] collapsed_placeholder = "/* ... */" word_characters = ["$"]