darron / language-ejs

EJS support for Atom.
Apache License 2.0
14 stars 7 forks source link

JSON embedded functions break the syntax. #10

Closed karloluis closed 8 months ago

karloluis commented 8 years ago

image

The image shows a ejs segment in which a JSON is called with a function. The dot followed by a word followed by a parenthesis (regex .<w>() breaks the syntax functionality until the parenthesis is closed.

k1r0s commented 8 years ago

i used to solve this..

karloluis commented 8 years ago

I'm guessing you mean you solved it. I see your pull request, now it's a matter of getting the owner @darron to maintain it.

k1r0s commented 8 years ago

lol i mean "I need".. sorry.

My PR is about other issue

karloluis commented 8 years ago

That's too bad. Let me know if you get it fixed. Looking forward to getting updates on this.

k1r0s commented 8 years ago

I found a place where syntax goes well

https://ionicabizau.github.io/ejs-playground/

here is the script.. https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.3/mode-ejs.js

Im trying to see regular expressions that can fix the language-ejs/grammars/javascript template.cson file

karloluis commented 8 years ago

I tried fixing it myself but this is a bit out of my league. Have fun.

k1r0s commented 8 years ago

ofc is out of my league too from https://ionicabizau.github.io/ejs-playground/ @IonicaBizau where you achieve this syntax engine? can you solve this?

IonicaBizau commented 8 years ago

Hey guys!

I simply used the ejs mode for Ace Editor there. :grin:

Truth is that I'm (still) terrible in regex... I don't think I can really help, but maybe that link is useful.

k1r0s commented 8 years ago

many thanks! dude!

k1r0s commented 8 years ago

Here is useful info to understand this file https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/ejs.js

https://ace.c9.io/#nav=higlighter