Skip to content

Commit

Permalink
Updating perl.tmbundle and adding another theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ashgti committed Mar 1, 2015
1 parent fc8f5d9 commit 2c08b31
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -4,3 +4,6 @@
[submodule "themes/atom-light-syntax"]
path = themes/atom-light-syntax
url = https://github.com/atom/atom-light-syntax
[submodule "themes/solarized-dark-syntax"]
path = themes/solarized-dark-syntax
url = https://github.com/atom/solarized-dark-syntax.git
2 changes: 1 addition & 1 deletion perl.tmbundle
7 changes: 4 additions & 3 deletions syntax-check.pl6
Expand Up @@ -18,7 +18,7 @@ sub check-dependencies {
}
}

my $syntax-validation-template = q:to/END/;
my $syntax-validation-template = q:to /END/;
<!DOCTYPE html>
<html>
<head>
Expand All @@ -39,16 +39,17 @@ sub MAIN(:i(:$init), :t(:$theme) = 'atom-light-syntax', :o(:$output) = 'output',

if $init {
qx<apm init --package language-perl --convert ./perl.tmbundle>;
qx<npm install ./language-perl>;
}

if $output.IO !~~ :d {
mkdir($output);
}

shell(qqw{lessc --include-path=themes/$theme/styles themes/$theme/index.less $output/$theme.css});
shell(qqw{lessc --include-path="themes/$theme/styles" "themes/$theme/index.less" "$output/$theme.css"});

for @example-files -> $example {
my $highlight = qqx<node ./highlight-p6.js --scope source.perl6 --include ./language-perl/grammars/perl\\ 6.cson {$example}>;
my $highlight = qqx<node ./highlight-p6.js --scope source.perl6 {$example}>;
spurt "$output/$example.html", sprintf($syntax-validation-template, $example, $theme, $highlight);
}
}
1 change: 1 addition & 0 deletions themes/solarized-dark-syntax
Submodule solarized-dark-syntax added at 6cf7bf

0 comments on commit 2c08b31

Please sign in to comment.