-
Notifications
You must be signed in to change notification settings - Fork 128
feat: add c# support #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
can I join TheStartup now, boss? |
4a07f70 to
ce4a281
Compare
caccb73 to
77cc198
Compare
lua/99/editor/treesitter.lua
Outdated
| --- Mapping table for filetype normalization | ||
| --- Keys are raw Neovim filetypes, values are Treesitter-compatible language names | ||
| --- @type table<string, _99.treesitter.Lang> | ||
| local TS_LANG_MAP = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty sure i already have this for typescriptreact... but i may have inlined it
|
could you figure out where my typescriptreact -> typescript change and combine your c_sharp ft changes? |
|
@kx0101 make pr_ready |
|
Hey boss! Of course, I'll check it out later tonight and let you know |
|
you're totally right! It was on gonna send a new commit in a sec |
77cc198 to
f8a641b
Compare
|
fyi: For some weird reason I'm facing this error when doing echo "===> Checking format"
===> Checking format
stylua lua/ --config-path=.stylua.toml --check
error: could not format file lua/99/editor/treesitter.lua: error parsing:
- unexpected token `end_of_loops` (78:16 to 78:28), unexpected expression when looking for a statement
- unexpected token `end_of_loops` (78:16 to 78:28), expected `end` to conclude `if`
- unexpected token `end` (79:9 to 79:12), unexpected expression when looking for a statement
- unexpected token `::` (83:3 to 83:5), unexpected token, this needs to be a statement
- unexpected token `::` (83:17 to 83:19), unexpected expression when looking for a statement
- unexpected token `::` (83:17 to 83:19), unexpected token, this needs to be a statement
make: *** [Makefile:7: lua_fmt_check] Error 2➜ 99 git:(feat/csharp-support) stylua --version
stylua 2.3.1so I decided to push in case it's just me that has this issue |
f8a641b to
7aa804a
Compare
| file_type = "typescript" | ||
| end | ||
|
|
||
| if file_type == "csharp" or file_type == "cs" then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably should create a map, but we will do it for the next time (rule of 3)
|
fix ci pls execute likely just a |
|
@ThePrimeagen still doesn't work :/ ➜ 99 git:(feat/csharp-support) make lua_fmt
echo "===> Formatting"
===> Formatting
stylua lua/ --config-path=.stylua.toml
error: could not format file lua/99/editor/treesitter.lua: error parsing:
- unexpected token `end_of_loops` (78:16 to 78:28), unexpected expression when looking for a statement
- unexpected token `end_of_loops` (78:16 to 78:28), expected `end` to conclude `if`
- unexpected token `end` (79:9 to 79:12), unexpected expression when looking for a statement
- unexpected token `::` (83:3 to 83:5), unexpected token, this needs to be a statement
- unexpected token `::` (83:17 to 83:19), unexpected expression when looking for a statement
- unexpected token `::` (83:17 to 83:19), unexpected token, this needs to be a statement
make: *** [Makefile:3: lua_fmt] Error 2 |
|
hmmmmmm, let me look at this |
|
it's weird because the error in github ci's is different than the one i'm getting too 😄 it's the same error you saw on stream today |
7aa804a to
8e180c3
Compare
| local found = Agents.by_name(rules, prompt) | ||
|
|
||
| eq({ "front-end" }, found.names) | ||
| eq({"front-end"}, found.names) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ThePrimeagen I think now it will work just fine
|
I'll have to merge and fix on Monday, it's not a big deal |
csharpandcstoc_sharpfor treesitter (such a pain lol)