Title: Java tree-sitter syntax highlighting does not parse annotations correctly · Issue #239 · atom/language-java · GitHub
Open Graph Title: Java tree-sitter syntax highlighting does not parse annotations correctly · Issue #239 · atom/language-java
X Title: Java tree-sitter syntax highlighting does not parse annotations correctly · Issue #239 · atom/language-java
Description: Prerequisites Put an X between the brackets on this line if you have done all of the following: Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode Followed all applicable s...
Open Graph Description: Prerequisites Put an X between the brackets on this line if you have done all of the following: Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#u...
X Description: Prerequisites Put an X between the brackets on this line if you have done all of the following: Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#u...
Opengraph URL: https://github.com/atom/language-java/issues/239
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Java tree-sitter syntax highlighting does not parse annotations correctly","articleBody":"### Prerequisites\r\n\r\n* [ ] Put an X between the brackets on this line if you have done all of the following:\r\n * Reproduced the problem in Safe Mode: \u003chttps://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode\u003e\r\n * Followed all applicable steps in the debugging guide: \u003chttps://flight-manual.atom.io/hacking-atom/sections/debugging/\u003e\r\n * Checked the FAQs on the message board for common solutions: \u003chttps://discuss.atom.io/c/faq\u003e\r\n * Checked that your issue isn't already filed: \u003chttps://github.com/issues?utf8=✓\u0026q=is%3Aissue+user%3Aatom\u003e\r\n * Checked that there is not already an Atom package that provides the described functionality: \u003chttps://atom.io/packages\u003e\r\n\r\n### Description\r\n\r\nJava tree-sitter highlighting does not recognise the following annotations:\r\n```java\r\nclass A {\r\n @Retries.RetryTranslated\r\n private void func(int arg) throws IOException {\r\n // ...\r\n } \r\n}\r\n```\r\n\r\nWe need to fix it, here is what it looks like in Atom 1.53.0:\r\n\u003cimg width=\"607\" alt=\"Screenshot 2020-11-23 at 11 23 08\" src=\"https://user-images.githubusercontent.com/7788766/99952003-4401d780-2d7f-11eb-8fab-5f63ec1566f7.png\"\u003e\r\n\r\n\r\n### Steps to Reproduce\r\n\r\n1. Paste the code into Atom 1.53.0\r\n2. Select Java language.\r\n\r\n**Expected behavior:**\r\n\r\nSyntax highlighting is similar to other annotation types.\r\n\r\n**Actual behavior:**\r\n\r\nSyntax highlighting is different.\r\n\r\n**Reproduces how often:**\r\n\r\n100%\r\n\r\n### Versions\r\n\r\n```\r\napm 2.5.2\r\nnpm 6.14.8\r\nnode 12.4.0 x64\r\natom 1.53.0\r\npython 2.7.10\r\ngit 2.17.2\r\n```\r\n\r\n### Additional Information\r\n\r\n\u003c!-- Any additional information, configuration or data that might be necessary to reproduce the issue. --\u003e\r\n","author":{"url":"https://github.com/sadikovi","@type":"Person","name":"sadikovi"},"datePublished":"2020-11-23T10:31:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/239/language-java/issues/239"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a41eab0f-4f0b-a113-c273-b1ebf9a2a881 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0A0:37E581:50C0F:6DE3F:6A6259DF |
| html-safe-nonce | b9fb49937b5420ac3e1a08a9eab28c7a84651aca0f2810bc067763cdb6d299ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEEwOjM3RTU4MTo1MEMwRjo2REUzRjo2QTYyNTlERiIsInZpc2l0b3JfaWQiOiI4NjkyMjA2NTkxMjYwMzgzNzExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c8545da690b4c66041f84840328fc589abbf03f5ffe847c11a803e9ea6e995f6 |
| hovercard-subject-tag | issue:748676975 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/atom/language-java/239/issue_layout |
| twitter:image | https://opengraph.githubassets.com/49a7419066ff02de5f2be83e1a8b02322e9c004636b2d872638c81d548b356a8/atom/language-java/issues/239 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/49a7419066ff02de5f2be83e1a8b02322e9c004636b2d872638c81d548b356a8/atom/language-java/issues/239 |
| og:image:alt | Prerequisites Put an X between the brackets on this line if you have done all of the following: Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#u... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sadikovi |
| hostname | github.com |
| expected-hostname | github.com |
| None | b928dd27bb9305f313c737471c216297e218430ec505d064cf33d7d74af9bf89 |
| turbo-cache-control | no-preview |
| go-import | github.com/atom/language-java git https://github.com/atom/language-java.git |
| octolytics-dimension-user_id | 1089146 |
| octolytics-dimension-user_login | atom |
| octolytics-dimension-repository_id | 13712044 |
| octolytics-dimension-repository_nwo | atom/language-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13712044 |
| octolytics-dimension-repository_network_root_nwo | atom/language-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6f728c3f39985ee4d171ffdd5591d8d2652392d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width