qtiuto / lua-for-android

A high-performance bridge for lua and java or c in Android with mutil-thread and almost all java features supported
BSD 3-Clause "New" or "Revised" License
111 stars 26 forks source link

ide support js language comment ? #1

Closed lozn00 closed 5 years ago

lozn00 commented 5 years ago

ide support js language comment ?

qtiuto commented 5 years ago

If you mean that whether the editor supports js or java style comment,it doesn't. Use lua style comment instead.@qssq

lozn00 commented 5 years ago

I found a lot of versions of textwarrior from the Internet, and I didn't find the answer. I can't display comments using the lua version.

//https://github.com/luoyesiqiu/simpleC/tree/master/app/src/main/java/com/myopicmobile/textwarrior/common //https://github.com/LingSaTuo/CreateJS //https://github.com/brnogz/TextWarriorLibrary //https://github.com/qtiuto/lua-for-android english //https://github.com/XsJIONG/VIDE //https://github.com/fengdeyingzi/CodeEditor //https://github.com/nirenr/AndroLua_pro

My ability is not enough, a lot of code inside can't understand

lozn00 commented 5 years ago

There is a part of the code inside. Can't understand, don't know how to modify it to be compatible with js, realize // turn green hze b7t h6 f 7xnl 7n

/**

/**

/**

lozn00 commented 5 years ago

can you hellp me? 😔

qtiuto commented 5 years ago

Long comment in lua is this style --[[ this comment can be multi-line ]], and short comment starts with --. @qssq

lozn00 commented 5 years ago

I know, I mean, I want to change it to js ide, then support // and /**/, I am having problems and can’t start.

qtiuto commented 5 years ago

It's not an easy task to convert the lua lexer to js lexer cause its definition is hard to change and many attributes is hard coded. I suggest you finding out another proper lexer to do so. Actually, I just copy the editor from another project for short. @qssq