Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Haskell identifies #30

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 7 comments
Closed

Haskell identifies #30

GoogleCodeExporter opened this issue Apr 22, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. open this URL:
<http://code.google.com/p/omega/source/browse/branches/llvm-gen/GenLLVM.hs?r=86#
78>
2. look at the selected line
3. it appears starnge

(Please include HTML, not just your source code)


What is the expected output?  What do you see instead?

In Haskell the apostrophe character can be tacked behind identifiers,
like

a' = 42;
b'' = 25;

Your highlighting code does not seem to cope with this :-(
and treats it like the start of a literal character constant.

What version are you using?  On what browser?
the version in google hosting, see
<http://code.google.com/p/support/issues/detail?id=709>

Safari 3.0 browser.


Original issue reported on code.google.com by ggr...@gmail.com on 5 Feb 2008 at 6:18

@GoogleCodeExporter
Copy link
Author

the subject should be

"Haskell identifiers with apostrophe highlighted wrongly"

but I pressed the return key before that.


Original comment by ggr...@gmail.com on 5 Feb 2008 at 6:20

@GoogleCodeExporter
Copy link
Author

also, the "--"-style comments are not recognized.
these are similar to the C++ "//"-style comments, but must be preceded by a 
blank

feel free to contact me about the exact rules

Original comment by ggr...@gmail.com on 7 Feb 2008 at 11:39

@GoogleCodeExporter
Copy link
Author

might be related to issue-25

Original comment by ggr...@gmail.com on 7 Feb 2008 at 11:59

@GoogleCodeExporter
Copy link
Author

grammar at http://www.haskell.org/onlinereport/lexemes.html

Original comment by mikesamuel@gmail.com on 23 Apr 2008 at 5:53

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Is haskell's lexical grammar similar enough to LISP's that the new lisp mode at
http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html#is
sue42
would work as a basis?

Original comment by mikesamuel@gmail.com on 6 Jul 2008 at 12:03

@GoogleCodeExporter
Copy link
Author

Unfortunately not, Haskell has a more complicated syntax, as
it is indentation dependent (with offside rule) resembling Python,
and not easy to parse.

But the bug itself is easy to fix IMHO :-)


Original comment by ggr...@gmail.com on 9 Jul 2008 at 7:16

@GoogleCodeExporter
Copy link
Author

@r55

Added src/lang-hs.js and tests.

Original comment by mikesamuel@gmail.com on 6 Jan 2009 at 5:58

  • Changed state: Fixed

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

No branches or pull requests

2 participants