pulsar/packages/language-c
Steven Nguyen c2963a383e
c++ fixes
incorporates:

https://github.com/atom/language-c/pull/252
Note that this particular change was modified. `class public virtual : public virtual Example` is invalid I think, but I don't see a good way to prevent that because the detection must be moved into `patterns > include` because textmate is not multiline regex.
See also https://github.com/jeff-hykin/better-cpp-syntax/issues/14
(In fact that whole repostory probably has some improvements)
I changed it to include the angle brackets because types can have those

https://github.com/atom/language-c/pull/263
https://github.com/atom/language-c/pull/311
https://github.com/atom/language-c/pull/368

For tree-sitter, kinda fix the Discord reported issue
(In #support M1 Mac C++ Syntax highlighting)

Note that I syntax color only the last function name and not the namespace or colon. But that could easily be changed.

For future me, the relevant tree-sitter namespace identifier scopes are:
`call_expression > qualified_identifier > identifier` and
`function_declarator > qualified_identifier > identifier`

I don't know anything about template functions so I left that untouched. So this is probably an incomplete fix.

Finally, add the `static_assert` operator. It's technically a directive so it'll appear purple, not blue. Again this could easily be changed so don't hesitate about feedback, idk anything about c++
2023-02-02 15:56:31 -06:00
..
grammars c++ fixes 2023-02-02 15:56:31 -06:00
lib lint 2022-06-26 03:21:15 +00:00
settings ➡️ Migrate all language packages 2022-06-25 19:58:57 +00:00
snippets ➡️ Migrate all language packages 2022-06-25 19:58:57 +00:00
spec ➡️ Migrate all language packages 2022-06-25 19:58:57 +00:00
.gitignore ➡️ Migrate all language packages 2022-06-25 19:58:57 +00:00
LICENSE.md rebrand and relicence 2022-12-03 02:46:08 +00:00
package-lock.json add or update packages/*/package-lock.json 2022-12-10 19:13:50 +01:00
package.json Merge branch 'master' into remove-coffeelint 2022-12-03 20:45:45 -08:00
README.md rebrand and relicence 2022-12-03 02:46:08 +00:00

C/C++ language support in Pulsar

Adds syntax highlighting and snippets to C/C++ files in Pulsar.

Originally converted from the C TextMate bundle.

Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.