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

Atom 1.2.0 , OSX 10.11, Only limited ligatures working #69

Closed
benjamin-rood opened this issue Nov 13, 2015 · 5 comments
Closed

Atom 1.2.0 , OSX 10.11, Only limited ligatures working #69

benjamin-rood opened this issue Nov 13, 2015 · 5 comments

Comments

@benjamin-rood
Copy link

atom-text-editor { text-rendering:optimizeLegibility } makes no difference.

Working:
!= <= >= /= == ^= >>= <<= ===
... (...)

Not Working:
-> => (all lengths)
->>
!== maps to != =
>>> (and reverse)
-<< (and reverse)
***
(all arrows)

It would be safe to assume that most of the rest are not working, but those are the ones I had a chance to try.

It may be that I am typing the wrong keys? But since some of the ligatures are working, I must be doing something correct?

(One other suggestion: Why not have a plaintext version of all symbol combinations in the README.md which produce ligatures. Then someone can just copy and paste the whole set into Atom, see which ones convert or not.)

@weavejester
Copy link

Take a look at issue #63.

@benjamin-rood
Copy link
Author

Hi weavejester, Yes, you are right, that is indeed the problem and an identical issue. When I try to enter a ligature in a comment line, they all seem to work fine. Thank you very much for correctly spotting the most likely candidate.
Related query: is there a list of the syntax definitions which are compatible / partially compatible / no functionality?
How can I help with the atom implementation? It seems nuts to me that say, if you are dealing with pointer indirection in C, that there is any difference between having the arrow and -> , surely the ligature is just for our viewing and the raw source code just has -> to preserve parsing?

@tonsky
Copy link
Owner

tonsky commented Nov 13, 2015

Here’s text version of most of the ligatures:

a == b    a := b   a >= b
a != b    a |= b   a <= b
a === b   a ||=b   a <> b
a !== b   a .= b   a && b
a =:= b   a ~= b   a || b
a =/= b   a =~ b   a ?: b
a <=> b   a ~~ b   a >> b
a ..< b   a ?= b   b << a
a ... b   a /= b   s |> p
a ** b    a ^= b   p <| s
a :: b    a .. b

x ->  _  <- x   #(...)    /* ... */
x ->> _ <<- x   #[...]   /** ... */
x --> _ <-- x   #{...}    // ...
x =>  _  <= x   #_(...)  /// ...
x ==> _ <== x   #?(...)   ;; ...
x =>> _ <<= x   ~@(...)   {- ... -}
     a!!                 <!--...-->
     a??                    <.../>
     a++                   </...>
     a--                 

f >>= g   f +++ g
f =<< g   f --- g
f <=< g   f <+> g
f >=> g   f <*> g
f *** g   f <$> g
f &&& g   f <|> g
f ||| g   f -<< g
f >>> g   f >>- g
f <<< g   f >- g
          f -< g

@mik01aj
Copy link

mik01aj commented Mar 17, 2016

Seems to be fixed in atom/language-javascript#259.

Just to note, there are multiple highlighting modes for JS and JSX, "Javascript (JSX)" seems to work best for me.

@SjoerdPennings
Copy link

PHP still seems to have issues with it.

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