rxi / lite-plugins

Plugins for the lite text editor
356 stars 93 forks source link

help in a regexp for symbol #160

Open cesarmarinhorj opened 5 months ago

cesarmarinhorj commented 5 months ago

I copied language_jennel to language_janet to make a Janet language plugin. but I cant resolve the symbol regexp.

A symbol can be: :symbol :my-symbol :just/another

thanks!!!

SwissalpS commented 5 months ago

have you tried ":[%w_-/]*"

(I've got no experience with either languages) (language_jennel.lua doesn't seem part of this repository.)

cesarmarinhorj commented 5 months ago

works in: :types :nodes

but not in: :any/types :any/nodes :any-of/test-in-tests

just first letters part works

cesarmarinhorj commented 5 months ago

after ready, I want submit here, can I?

SwissalpS commented 5 months ago

works in: :types :nodes

but not in: :any/types :any/nodes :any-of/test-in-tests

just first letters part works

It would help if we could see your code as it is so far, you could submit a draft-PR then once it works, change it to 'ready for review'.

cesarmarinhorj commented 5 months ago

how can I send file? here or by a pull request?

SwissalpS commented 5 months ago

it is better to do a PR (pull request) than to post files.

cesarmarinhorj commented 5 months ago

I made it! sorry by delay. is my first open source contribution! 8)