Commit Graph

24 Commits

Author SHA1 Message Date
Maurício Szabo
ebb54aaed5 Merge remote-tracking branch 'origin/master' into feature/modernize-tree-sitter 2023-02-16 17:57:01 -03:00
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
Maurício Szabo
beb1701753 Changed config for tree-sitter to be grammar-based 2023-01-14 17:53:41 -03:00
confused_techie
2eab519e23
Merge pull request #209 from Sertonix/add-or-update-packages-package-lock.js
add or update `packages/*/package-lock.json`
2022-12-13 18:21:25 -08:00
confused_techie
8dac21178f
Merge pull request #190 from Daeraxa/pkg-brand-licence
Re-brand and re-licence core packages
2022-12-10 18:36:17 -08:00
Sertonix
aecb3cc5c3 add or update packages/*/package-lock.json 2022-12-10 19:13:50 +01:00
confused_techie
61d85c19a8
Merge branch 'master' into remove-coffeelint 2022-12-03 20:45:45 -08:00
Daeraxa
e5c40b5f35 rebrand and relicence 2022-12-03 02:46:08 +00:00
confused_techie
4359a15530
Merge pull request #157 from Sertonix/cleanup-packages-package.json
cleanup `packages/*/package.json`
2022-11-28 00:34:37 -08:00
confused_techie
c15f52be3f
Merge pull request #161 from Sertonix/remove-packages-readme-badges
remove badges `packages/*/README.md`
2022-11-21 19:36:26 -08:00
Sertonix
d9e092f16f remove badges from packages readme 2022-11-19 23:43:16 +01:00
Sertonix
457f1c90cb cleanup packages package.json 2022-11-19 17:06:46 +01:00
Sertonix
dc38473c26 remove packages ci 2022-11-19 16:37:54 +01:00
Sertonix
74f2f6d339 remove packages no-response.yaml 2022-11-19 16:21:08 +01:00
Sertonix
fdb78ea44c remove coffeelint 2022-11-19 16:10:43 +01:00
Sertonix
c131849694 remove unused .md 2022-10-28 12:48:13 +02:00
Maurício Szabo
68d48d5872 Merge remote-tracking branch 'origin/rebrand' into rebrand-and-bump-electron-to-12 2022-09-11 11:50:31 -03:00
confused_techie
34d8d80d5f
Update packages/language-c/README.md 2022-08-28 18:36:23 -07:00
confused_techie
ce27885197
Update packages/language-c/README.md 2022-08-28 18:36:11 -07:00
confused_techie
02a42e5ab6
Update packages/language-c/CONTRIBUTING.md 2022-08-28 18:35:22 -07:00
Maurício Szabo
9c1ecb2e73 Internalized more packages 2022-08-19 02:23:02 -03:00
Maurício Szabo
18164b324e Bumped all languages to recent tree-sitter 2022-06-26 11:58:28 -03:00
steven nguyen
3399c06de1 lint 2022-06-26 03:21:15 +00:00
steven nguyen
477b075db5 ➡️ Migrate all language packages
To make https://github.com/atom-community/atom/pull/386 reviewable,
that pr will be separated into many simpler prs. This is one of them.

This first commit does the following:
- update package.json
- update package-lock.json using `./script/build` which also seems to update `apm/package-lock.json`
- update packages/README.md
- clone all language packages. Specifically:
    - `mkdir packages/language-<all of them>`
    - `cd packages/about`
    - For all languages:
        - `cd ../language-<>`
        - `git clone language-<>`
        - Move all files except `.git` from `language-<>/language-<>`
          to `language-<>`
        - delete `language-<>/language-<>`

Since at first I accidentally updated `dependencies` then
`packageDependencies`, it appears that since the versions of language-c,
language-css, language-go, language-javascript, and language-sass don't
match, `dependencies` was reset for those versions.

[Those repos just happen to be precisely the ones that have tree-sitter v19](https://github.com/icecream17/atom-update-backlog/blob/main/Languages.md), (sans language-sass),
which [currently breaks atom](https://github.com/atom/atom/issues/22129). So even though their repos are now
in `packages`, **I've decided to not use them**.

This is done by updating `packageDependencies` only for non-breaking
languages.
2022-06-25 19:58:57 +00:00