From cbcbb969d5014cbcd15a4dc83a1669b8f540c451 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Wed, 23 Apr 2014 23:02:19 -0400 Subject: [PATCH] Add XML, HTML and JSON samples for Liquid. --- lib/linguist/languages.yml | 2 + lib/linguist/samples.json | 271 ++++++++++++++++++++++++++++++------- samples/Liquid/feed.xml | 44 ++++++ samples/Liquid/jekyll.html | 84 ++++++++++++ samples/Liquid/posts.json | 1 + 5 files changed, 355 insertions(+), 47 deletions(-) create mode 100644 samples/Liquid/feed.xml create mode 100644 samples/Liquid/jekyll.html create mode 100644 samples/Liquid/posts.json diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index cc10b8e0..e2deec79 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1072,6 +1072,8 @@ Liquid: primary_extension: .liquid extensions: - .html + - .json + - .xml Literate Agda: type: programming diff --git a/lib/linguist/samples.json b/lib/linguist/samples.json index b9752913..9dfd0466 100644 --- a/lib/linguist/samples.json +++ b/lib/linguist/samples.json @@ -263,7 +263,10 @@ ".lfe" ], "Liquid": [ - ".liquid" + ".html", + ".json", + ".liquid", + ".xml" ], "Literate Agda": [ ".lagda" @@ -674,8 +677,8 @@ ".gemrc" ] }, - "tokens_total": 588920, - "languages_total": 708, + "tokens_total": 589521, + "languages_total": 711, "tokens": { "ABAP": { "*/**": 1, @@ -33951,6 +33954,220 @@ "reproduce": 1 }, "Liquid": { + "": 1, + "version=": 2, + "encoding=": 1, + "": 1, + "xmlns": 6, + "content=": 2, + "wfw=": 1, + "dc=": 1, + "atom=": 1, + "sy=": 1, + "slash=": 1, + "": 1, + "": 4, + "xml": 2, + "lang=": 3, + "Jekyll": 6, + "Simple": 3, + "blog": 3, + "-": 17, + "aware": 3, + "static": 5, + "sites": 3, + "": 4, + "": 1, + "type=": 3, + "href=": 19, + "rel=": 3, + "": 3, + "http": 8, + "//jekyllrb.com/": 2, + "": 3, + "": 2, + "{": 119, + "site.time": 2, + "|": 39, + "date_to_rfc822": 3, + "}": 119, + "": 2, + "": 1, + "": 1, + "": 1, + "en": 1, + "US": 1, + "": 1, + "": 1, + "v": 1, + "jekyll.version": 1, + "": 1, + "": 3, + "Transform": 3, + "your": 7, + "plain": 3, + "text": 3, + "into": 3, + "websites": 3, + "and": 6, + "blogs.": 3, + "": 3, + "": 1, + "": 1, + "//jekyllrb.com/img/logo": 1, + "rss.png": 1, + "": 1, + "": 1, + "": 1, + "": 1, + "": 1, + "": 1, + "%": 58, + "for": 11, + "post": 1, + "in": 12, + "site.posts": 2, + "": 1, + "post.title": 1, + "xml_escape": 4, + "//jekyllrb.com": 2, + "post.url": 2, + "post.date": 1, + "": 1, + "post.author": 1, + "": 1, + "tag": 6, + "post.tags": 1, + "": 2, + "": 2, + "endfor": 9, + "cat": 2, + "post.categories": 1, + "": 1, + "isPermaLink=": 1, + "": 1, + "post.content": 1, + "": 1, + "": 1, + "": 1, + "
": 4, + "class=": 58, + "
": 41, + "

": 12, + "&": 10, + "nbsp": 4, + ";": 10, + "

": 12, + "
": 41, + "
": 4, + "

": 7, + "

": 7, + "No": 1, + "more": 2, + "databases": 1, + "comment": 1, + "moderation": 1, + "or": 2, + "pesky": 1, + "updates": 1, + "to": 3, + "install": 2, + "just": 1, + "": 3, + "content": 1, + "": 3, + ".": 5, + "": 18, + "How": 1, + "works": 1, + "rarr": 4, + "": 18, + "Static": 2, + "Markdown": 1, + "(": 2, + "Textile": 1, + ")": 2, + "Liquid": 1, + "HTML": 1, + "": 15, + "amp": 1, + "": 15, + "CSS": 1, + "go": 1, + "in.": 1, + "come": 1, + "out": 1, + "ready": 1, + "deployment.": 1, + "template": 1, + "guide": 1, + "Blog": 1, + "Permalinks": 1, + "categories": 1, + "pages": 1, + "posts": 1, + "custom": 2, + "layouts": 1, + "are": 3, + "all": 1, + "first": 1, + "class": 1, + "citizens": 1, + "here.": 1, + "Migrate": 1, + "

": 2, + "Get": 1, + "up": 1, + "running": 1, + "seconds": 1, + "

": 2, + "Quick": 1, + "start": 1, + "Instructions": 1, + "gem": 1, + "jekyll": 3, + "new": 1, + "my": 2, + "awesome": 3, + "site": 4, + "cd": 1, + "/my": 1, + "serve": 1, + "#": 1, + "Now": 1, + "browse": 1, + "//localhost": 1, + "": 5, + "src=": 6, + "width=": 1, + "height=": 1, + "alt=": 3, + "": 1, + "Free": 1, + "hosting": 2, + "": 1, + "with": 2, + "GitHub": 4, + "Pages": 3, + "Sick": 1, + "of": 1, + "dealing": 1, + "companies": 1, + "powered": 1, + "by": 2, + "so": 1, + "you": 1, + "can": 1, + "easily": 1, + "deploy": 1, + "using": 1, + "free": 1, + "mdash": 1, + "domain": 1, + "name": 1, + "all.": 1, + "Learn": 1, + "about": 1, "": 1, "html": 1, "PUBLIC": 1, @@ -33961,7 +34178,6 @@ "0": 1, "Transitional": 1, "EN": 1, - "http": 2, "www": 1, "w3": 1, "org": 1, @@ -33971,20 +34187,11 @@ "dtd": 1, "": 1, "xmlns=": 1, - "xml": 1, - "lang=": 2, "": 1, "": 1, "equiv=": 1, - "content=": 1, - "": 1, - "{": 89, "shop.name": 2, - "}": 89, - "-": 4, "page_title": 1, - "": 1, - "|": 31, "global_asset_url": 5, "stylesheet_tag": 3, "script_tag": 5, @@ -33994,45 +34201,24 @@ "": 1, "": 1, "id=": 28, - "

": 1, - "class=": 14, - "": 9, - "href=": 9, "Skip": 1, - "to": 1, "navigation.": 1, - "": 9, - "

": 1, - "%": 46, "if": 5, "cart.item_count": 7, - "
": 23, "style=": 5, - "

": 3, "There": 1, "pluralize": 3, - "in": 8, "title=": 3, - "your": 1, "cart": 1, - "

": 3, - "

": 1, "Your": 1, "subtotal": 1, "is": 1, "cart.total_price": 2, "money": 5, - ".": 3, - "

": 1, - "for": 6, "item": 1, "cart.items": 1, "onMouseover=": 2, "onMouseout=": 2, - "": 4, - "src=": 5, - "
": 23, - "endfor": 6, "
": 2, "endif": 5, "

": 1, @@ -34041,8 +34227,6 @@ "View": 1, "Mini": 1, "Cart": 1, - "(": 1, - ")": 1, "
": 3, "content_for_layout": 1, "": 5, "tags": 1, - "tag": 4, "collection.tags": 1, - "": 1, "link_to_add_tag": 1, - "": 1, "highlight_active_tag": 1, "link_to_tag": 1, "linklists.footer.links": 1, "All": 1, "prices": 1, - "are": 1, "shop.currency": 1, "Powered": 1, - "by": 1, "Shopify": 1, "": 1, "": 1, + "jsonify": 1, "

": 1, "We": 1, "have": 1, @@ -34082,8 +34262,6 @@ "image": 1, "product.images": 1, "forloop.first": 1, - "rel=": 2, - "alt=": 2, "else": 1, "product.title": 1, "Vendor": 1, @@ -34111,7 +34289,6 @@ "": 1, "": 1, "": 1, - "type=": 2, "": 1, "product.description": 1, "