Re: [Github-comments] [geany/geany] filetypes.lua: Change block comment (#2566)

2020-10-03 Thread elextr
Merged #2566 into master. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/2566#event-3837051783

Re: [Github-comments] [geany/geany] filetypes.lua: Change block comment (#2566)

2020-10-03 Thread Matthew Brush
@codebrainz approved this pull request. Works fine for me when commenting and uncommenting line(s), when I set `comment_single` to nothing. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Github-comments] [geany/geany] filetypes.lua: Change block comment (#2566)

2020-09-28 Thread elextr
> P.S. "Uncomment code" works strange with block comment. Hmm yeah, doesn't seem to work for any language (at least doesn't work for C AFAICT), so its separate issue, not Lua. Not really sure what it is supposed to do, but I suspect it favours single line comments if the setting exists, and

Re: [Github-comments] [geany/geany] filetypes.lua: Change block comment (#2566)

2020-09-28 Thread Skif-off
Hm... in this case `--]]` looks more useful. P.S. "Uncomment code" works strange with block comment. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/2566#issuecomment-699899446

Re: [Github-comments] [geany/geany] filetypes.lua: Change block comment (#2566)

2020-09-28 Thread elextr
@Skif-off the reference provided by the OP to the Lua manual explains the reasoning behind the `--]]` idiom. This setting is only used by the comment functions to comment/uncomment code, which is exactly the situation the reference above talks about, its not used anywhere it is actually

Re: [Github-comments] [geany/geany] filetypes.lua: Change block comment (#2566)

2020-09-28 Thread Skif-off
`]]--` or `--]]` don't make sense, because: - `]]--`: comment will end with `]]` and `--` will be beginning of other (single) comment, in C/C++ it would be:: ```c /* Block comment */// Single comment ``` Such "coding style" looks like crap... - `--]]`: comment will end with `]]` and `--` will

Re: [Github-comments] [geany/geany] filetypes.lua: Change block comment (#2566)

2020-08-05 Thread elextr
According to the link, end comment is `]]` not `]]--` so the original was wrong anyway. The modification is what is touted by the Lua manual as idiomatic usage rather than the actual end comment but its more correct than the original. Will commit soon unless many Luaists object that it will

[Github-comments] [geany/geany] filetypes.lua: Change block comment (#2566)

2020-08-05 Thread Filip SzymaƄski
See: https://www.lua.org/pil/1.3.html You can view, comment on, or merge this pull request online at: https://github.com/geany/geany/pull/2566 -- Commit Summary -- * filetypes.lua: Change block comment -- File Changes -- M data/filedefs/filetypes.lua (2) -- Patch Links --