Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get syntax highlighting for LiveScript on GitHub #39

Closed
gkz opened this issue Jun 20, 2012 · 10 comments
Closed

Get syntax highlighting for LiveScript on GitHub #39

gkz opened this issue Jun 20, 2012 · 10 comments

Comments

@gkz
Copy link
Owner

gkz commented Jun 20, 2012

Need to submit a pull request to https://github.com/github/linguist

@paulmillr
Copy link
Contributor

and to https://bitbucket.org/birkenfeld/pygments-main (bitbucket sucks dong)

@paulmillr
Copy link
Contributor

@gkz today is livescript day.

I've made pulls to:

this how it will look like in a bit on gh

@gkz
Copy link
Owner Author

gkz commented Jun 26, 2012

Great work! Looks awesome. Some things to add to the example:

<[ list of words ]>
!->
!~>
!-->
!~~>
<-!
<-!

Post when the pull request for linguist has all tests passing and I'll go +1 it and perhaps post in several places encouraging people to +1 it.

@paulmillr
Copy link
Contributor

some things to add

Done. Single regex works badly because I copied original code from coffeescript lexer and it ain't work there too.

@gkz
Copy link
Owner Author

gkz commented Jun 26, 2012

Cool stuff!

Just looking at http://gkz.github.com/LiveScript/#literals

obj =
  prop: 1
  prop2: 2

void 
undefined
yes
no
on
off

16~ff

"The answer is #{2 + 2}"

variable = "world"
"Hello #variable"

heredoc = '''
        string can be multiline 
        with newlines
        and go on and on 
        beginning whitespace is 
        ignored
'''

@satyr
Copy link
Contributor

satyr commented Jun 27, 2012

Note that !-> isn't a single unified operator. You can write e.g.:

$ coco -bce ':f ! -> ! :g -> x'
(function f(){
  (function g(){
    x;
  });
});

@paulmillr
Copy link
Contributor

finally merged.

@clkao
Copy link
Contributor

clkao commented Jun 20, 2013

github seems still using an old pygments: https://github.com/g0v/hack.g0v.tw/blob/master/app/app/hub.ls is not rendering correctly

@apaleslimghost
Copy link
Contributor

There is a problem in general with <[]> arrays.

@clkao
Copy link
Contributor

clkao commented Jun 20, 2013

but on pygments demo site it rendered fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants