Added comments to tmLanguage and tmPreferences #39

Closed
wants to merge 2 commits into
from

Projects

None yet

2 participants

ianneub commented Dec 5, 2013

This adds a bit of readability to the xiki code (at least I find it helpful).

Any lines beginning with // will be treated as a comment.

The command key super+/ will toggle a "// " at the beginning of the current line.

ianneub added some commits Dec 5, 2013
@ianneub ianneub Added “comments” to the language and enabled super+/ to comment and u…
…ncomment lines. This adds a bit of readability to the xiki code (at least I find it helpful).
c7ebbee
@ianneub ianneub Switched comments to use // and not # 571fae9
Owner

# is used for comments in the command-line, so it still has a place in the language if you're running commands.

ianneub commented Dec 6, 2013

@lunixbochs I changed the comment symbol to //. Also I've set it to only comment a line if // is the first character of the line.

When I try to execute a line that starts with // it doesn't seem to do anything. So that's good.

Do you think that is acceptable?

Owner

I still feel the comments should be # because that's standard in shell.

bash-4.3$ echo #asdf

bash-4.3$ echo //asdf
//asdf
@ianneub ianneub closed this Jun 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment