Permalink
Browse files

Since alexwarth/ometa-js@1737db9 Parser is deprecated.

  • Loading branch information...
1 parent 922aff7 commit ecc046292cfb1c8a36bbefaf8cab61b878f61386 @veged committed Jul 19, 2011
View
@@ -19,7 +19,7 @@ lib/ometa-highlighter.js: src
; done
tests: FORCE
- ohl2html -i $@/bla.js -o $@/bla.html
- cat $@/bla.js | ohl2html > $@/bla.html.stdout
+ ./bin/ohl2html -i $@/bla.js -o $@/bla.html
+ cat $@/bla.js | ./bin/ohl2html > $@/bla.html.stdout
.PHONY: all FORCE
View
@@ -48,7 +48,7 @@ exports.main = function() {
.on('end', function() { inputFn(input) });
})(function(input){
try {
- var ohl = require('ometa-highlighter'),
+ var ohl = require('./ometa-highlighter'),
result = ohl.OmetaHighlighterToHtml.match(
ohl.OmetaHighlighter.matchAll(input, 'js'), // TODO: use format from options
'topLevel'
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,4 +1,4 @@
-ometa OmetaHighlighterJs <: Parser {
+ometa OmetaHighlighterJs {
fromTo :x :y = seq(x):s (~seq(y) char)*:c seq(y):e -> [s, c.join(''), e],
nameFirst = letter | '$' | '_',
@@ -73,7 +73,7 @@ ometa OmetaHighlighterJs <: Parser {
topLevel = (nonText | char)*
}
-ometa OmetaHighlighterXml <: Parser {
+ometa OmetaHighlighterXml {
fromTo :x :y = seq(x):s (~seq(y) char)*:c seq(y):e -> [s, c.join(''), e],
nameFirst = letter | ':' | '_',
@@ -106,7 +106,7 @@ ometa OmetaHighlighterXml <: Parser {
topLevel = (nonText | char)*
}
-ometa OmetaHighlighter <: Parser {
+ometa OmetaHighlighter {
js = char*:c -> [`js, OmetaHighlighterJs.matchAll(c.join(''), 'topLevel')],
javascript = js,
xml = char*:c -> [`xml, OmetaHighlighterXml.matchAll(c.join(''), 'topLevel')]

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit ecc0462

Please sign in to comment.