forked from rouge-ruby/rouge
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'moulin' into moulin.feature.openedge-abl-lexer
The branch that was the source of the original pull request (jneen#1033) has been deleted. In order to run the CI tests, the pull request has been checked out locally and this merges it with the other changes made in the moulin branch.
- Loading branch information
Showing
71 changed files
with
2,785 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version 1.1 | ||
@totalColumns 5 | ||
@separator ',' | ||
Transaction_Date: xDate | ||
Transaction_ID: notEmpty | ||
Originator_Name: notEmpty | ||
Originator_Address: any("yes","no") | ||
Originator_Country: notEmpty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
move | ||
initialize: ; go into super user mode | ||
clr.l -(a7) | ||
move.w #32,-(a7) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
def_slotted_exemplar( | ||
:test_object, | ||
{ | ||
{:slot, _unset} | ||
}) | ||
$ | ||
|
||
_method test_object.new() | ||
_return _clone.init() | ||
_endmethod | ||
$ | ||
|
||
_method test_object.init() | ||
## initializer | ||
_return _self | ||
_endmethod | ||
$ | ||
|
||
_method test_object.run(arg_1, _gather args) | ||
## Does something. | ||
write("calling test_object.run()") | ||
write(%tab, %newline) | ||
show(:args, _scatter args) | ||
|
||
_local x << | ||
_if arg_1 _is :start | ||
_then | ||
>> 10.0 | ||
_endif | ||
_local results << rope.new() | ||
|
||
_for arg _over rgs.fast_elements() | ||
_loop | ||
results.add_last(arg) | ||
_endloop | ||
|
||
_local stream << external_text_output_stream.new("$HOME/test.txt") | ||
_protect | ||
local y << p_args.map(_proc(p_obj) | ||
>> p_obj + 1 | ||
_endproc | ||
_protection | ||
stream.close() | ||
_endprotect | ||
|
||
_return results | ||
_endmethod | ||
$ | ||
|
||
_block | ||
_local obj << test_object.new() | ||
_try _with cond | ||
_local results << obj.run() | ||
_when error | ||
write("Caught error: ", cond.report_string) | ||
_endtry | ||
endblock | ||
$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
data sim; | ||
do i = 1 to 100; | ||
x1 = rand("Normal"); | ||
x2 = rand("Binomial", 0.5, 100); | ||
output; | ||
end; | ||
run; | ||
|
||
proc means data=sashelp.class; | ||
class sex; | ||
var height weight; | ||
output out = mean_by_sex; | ||
run; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Dim f As FolderItem | ||
f = GetOpenFolderItem(FileTypes1.jpeg) // defined in the File Type Set editor | ||
If not f.Exists Then | ||
Beep | ||
MsgBox("The file " + f.NativePath + "doesn't exist.") | ||
Else // document exists | ||
ImageWell1.image=Picture.Open(f) | ||
End If | ||
Exception err As NilObjectException | ||
MsgBox("Invalid pathname!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: utf-8 -*- # | ||
|
||
module Rouge | ||
module Formatters | ||
class HTMLLineanchors < Formatter | ||
def initialize(formatter, opts={}) | ||
@formatter = formatter | ||
@class_format = opts.fetch(:class, 'line-%i') | ||
end | ||
|
||
def stream(tokens, &b) | ||
token_lines(tokens) do |line| | ||
yield "<a name=#{next_line_class}></a>" | ||
line.each do |tok, val| | ||
yield @formatter.span(tok, val) | ||
end | ||
yield "\n" | ||
end | ||
end | ||
|
||
def next_line_class | ||
@lineno ||= 0 | ||
sprintf(@class_format, @lineno += 1).inspect | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.