This PR adds new config option to language config called `word_boundaries` that controls which characters should be recognised as word boundary for a given language. This will improve our UX for languages such as PHP and Tailwind. Release Notes: - Improved completions for PHP [#1820](https://github.com/zed-industries/community/issues/1820) --------- Co-authored-by: Julia Risley <julia@zed.dev>
14 lines
468 B
TOML
14 lines
468 B
TOML
name = "PHP"
|
|
path_suffixes = ["php"]
|
|
first_line_pattern = '^#!.*php'
|
|
line_comment = "// "
|
|
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"] },
|
|
]
|
|
collapsed_placeholder = "/* ... */"
|
|
word_characters = ["$"]
|