commit
e42bc29dbf
|
@ -19,7 +19,7 @@ notifications:
|
||||||
script: sh build-package.sh
|
script: sh build-package.sh
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- APM_TEST_PACKAGES="language-marko language-tss language-html-swig"
|
- APM_TEST_PACKAGES="language-marko language-tss language-html-swig language-svg"
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- pip
|
- pip
|
||||||
|
|
|
@ -28,6 +28,7 @@ Or Settings/Preferences ➔ Packages ➔ Search for `atom-beautify`
|
||||||
- [x] [Embedded Ruby (ERB)](https://github.com/Glavin001/atom-beautify/issues/80)
|
- [x] [Embedded Ruby (ERB)](https://github.com/Glavin001/atom-beautify/issues/80)
|
||||||
- Requires [htmlbeautifier](https://github.com/threedaymonk/htmlbeautifier)
|
- Requires [htmlbeautifier](https://github.com/threedaymonk/htmlbeautifier)
|
||||||
- [x] XML
|
- [x] XML
|
||||||
|
- [x] SVG
|
||||||
- [x] [Marko](https://github.com/raptorjs/marko)
|
- [x] [Marko](https://github.com/raptorjs/marko)
|
||||||
- Requires [language-marko](https://github.com/raptorjs/atom-language-marko)
|
- Requires [language-marko](https://github.com/raptorjs/atom-language-marko)
|
||||||
- [x] CSS, including
|
- [x] CSS, including
|
||||||
|
|
|
@ -112,7 +112,7 @@ build_script:
|
||||||
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
- cd %APPVEYOR_BUILD_FOLDER%
|
||||||
# Install languages to Atom
|
# Install languages to Atom
|
||||||
- apm install language-marko language-tss language-html-swig
|
- apm install language-marko language-tss language-html-swig language-svg
|
||||||
# Show current PATH
|
# Show current PATH
|
||||||
- echo %PATH%
|
- echo %PATH%
|
||||||
# Run tests on package
|
# Run tests on package
|
||||||
|
|
|
@ -146,7 +146,8 @@
|
||||||
"jekyll",
|
"jekyll",
|
||||||
"marko",
|
"marko",
|
||||||
"go",
|
"go",
|
||||||
"golang"
|
"golang",
|
||||||
|
"svg"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"coffee-script": "^1.9.3",
|
"coffee-script": "^1.9.3",
|
||||||
|
|
|
@ -24,7 +24,7 @@ describe "BeautifyLanguages", ->
|
||||||
"c", "coffee-script", "css", "html",
|
"c", "coffee-script", "css", "html",
|
||||||
"java", "javascript", "json", "less",
|
"java", "javascript", "json", "less",
|
||||||
"mustache", "objective-c", "perl", "php",
|
"mustache", "objective-c", "perl", "php",
|
||||||
"python", "ruby", "sass", "sql",
|
"python", "ruby", "sass", "sql", "svg",
|
||||||
"xml", "csharp", "gfm", "marko",
|
"xml", "csharp", "gfm", "marko",
|
||||||
"tss", "go", "html-swig"
|
"tss", "go", "html-swig"
|
||||||
]
|
]
|
||||||
|
|
|
@ -33,6 +33,7 @@ module.exports = class PrettyDiff extends Beautifier
|
||||||
EJS: true
|
EJS: true
|
||||||
HTML: true
|
HTML: true
|
||||||
XML: true
|
XML: true
|
||||||
|
SVG: true
|
||||||
Spacebars: true
|
Spacebars: true
|
||||||
JSX: true
|
JSX: true
|
||||||
JavaScript: true
|
JavaScript: true
|
||||||
|
@ -66,7 +67,7 @@ module.exports = class PrettyDiff extends Beautifier
|
||||||
lang = "handlebars"
|
lang = "handlebars"
|
||||||
when "SGML", "Swig"
|
when "SGML", "Swig"
|
||||||
lang = "markup"
|
lang = "markup"
|
||||||
when "XML", "Visualforce"
|
when "XML", "Visualforce", "SVG"
|
||||||
lang = "xml"
|
lang = "xml"
|
||||||
when "HTML"
|
when "HTML"
|
||||||
lang = "html"
|
lang = "html"
|
||||||
|
|
|
@ -44,6 +44,7 @@ module.exports = class Languages
|
||||||
"scss"
|
"scss"
|
||||||
"spacebars"
|
"spacebars"
|
||||||
"sql"
|
"sql"
|
||||||
|
"svg"
|
||||||
"swig"
|
"swig"
|
||||||
"tss"
|
"tss"
|
||||||
"twig"
|
"twig"
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
module.exports = {
|
||||||
|
|
||||||
|
name: "SVG"
|
||||||
|
description: "SVG"
|
||||||
|
namespace: "svg"
|
||||||
|
fallback: ['html','xml']
|
||||||
|
|
||||||
|
###
|
||||||
|
Supported Grammars
|
||||||
|
###
|
||||||
|
grammars: [
|
||||||
|
"SVG"
|
||||||
|
]
|
||||||
|
|
||||||
|
###
|
||||||
|
Supported extensions
|
||||||
|
###
|
||||||
|
extensions: [
|
||||||
|
'svg'
|
||||||
|
]
|
||||||
|
|
||||||
|
defaultBeautifier: "Pretty Diff"
|
||||||
|
|
||||||
|
options: []
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue