-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move every class and some other stuff to separate files. Still a work in progress. I need to address that CPointer's won't let me store a $tree. I could avoid using it and just require all arguments. Then I would need to create another set of convenience classes to make it truly sugary.
- Loading branch information
1 parent
746cba4
commit e39369f
Showing
15 changed files
with
990 additions
and
882 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"cmd": "perl6", | ||
"name": "Perl 6 Check Mode", | ||
"args": ["-Ilib", "-c", "{FILE_ACTIVE}"], | ||
"sh": true, | ||
"cwd": "/home/jrusso/github/p6-myhtml", | ||
"errorMatch": "\\s*at (?<file>\\/(?:[\\w\\-]+\\/)+\\w+.pm6)(?:\\s+\\((?:\\w|:)+\\))?:(?<line>\\d+)", | ||
"keymap": "ctrl+alt+c", | ||
"atomCommandName": "Perl6:Check", | ||
"targets": { | ||
"Perl 6 Tests": { | ||
"cmd": "prove", | ||
"args": ["-v", "-e", "'perl6 -Ilib'", "t/"], | ||
"atomCommandName": "Perl6:Test" | ||
} | ||
} | ||
|
||
} |
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 @@ | ||
use v6.c; | ||
use lib 'lib'; | ||
use Test; | ||
|
||
use HTML::MyHTML; | ||
|
||
my $html = "<div></div>"; | ||
|
||
my MyHTML $myhtml .= new: opt => PARSE_MODE_SEPARATELY; | ||
|
||
is $myhtml.parse($html):fragment, 0, 'myhtml_parse_fragment returns OK'; | ||
|
||
$myhtml.dispose; |
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,2 @@ | ||
use v6.c'; | ||
use lib 'lib'; |
Oops, something went wrong.