Skip to content

Commit

Permalink
Fix: update/add missing demo samples (#4975)
Browse files Browse the repository at this point in the history
* Rename unmatched demo samples

 + Remove nix override thing

* Add undeclared impls to modelist

* Backfill samples for django, txt, mips
  • Loading branch information
ParkerM authored Oct 31, 2022
1 parent 6886b02 commit 2b8236e
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 1 deletion.
1 change: 0 additions & 1 deletion demo/kitchen-sink/doclist.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ var docs = {

"docs/c9search.c9search_results": "C9 Search Results",
"docs/mel.mel": "MEL",
"docs/Nix.nix": "Nix"
};

var ownSource = {
Expand Down
7 changes: 7 additions & 0 deletions demo/kitchen-sink/docs/django.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "base.html" %}

{% block title %}Ace Django Template{% endblock %}

{% block content %}
<h1>Hello, {{ name|default:"World" }}!</h1>
{% endblock %}
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions demo/kitchen-sink/docs/mips.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Original source from https://eng.libretexts.org
# Kann, Charles W., "Introduction To MIPS Assembly Language Programming" (2015). Open Textbooks. 2.
# https://cupola.gettysburg.edu/oer/2

# Program File: Program2-1.asm
# Author: Charles Kann
# Purpose: First program, Hello World
.text # Define the program instructions.
main: # Label to define the main program.
li $v0,4 # Load 4 into $v0 to indicate a print string.
la $a0, greeting # Load the address of the greeting into $a0.
syscall # Print greeting. The print is indicated by
# $v0 having a value of 4, and the string to
# print is stored at the address in $a0.
li $v0, 10 # Load a 10 (halt) into $v0.
syscall # The program ends.
.data # Define the program data.
greeting: .asciiz "Hello World" #The string to print.
File renamed without changes.
9 changes: 9 additions & 0 deletions demo/kitchen-sink/docs/text.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
This is just some text!

// These
# are
-- not
<!-- comments -->
(but indent actions work)

This is just some text!
3 changes: 3 additions & 0 deletions src/ext/modelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ var supportedModes = {
LiveScript: ["ls"],
Log: ["log"],
LogiQL: ["logic|lql"],
Logtalk: ["lgt"],
LSL: ["lsl"],
Lua: ["lua"],
LuaPage: ["lp"],
Expand Down Expand Up @@ -190,6 +191,7 @@ var supportedModes = {
snippets: ["snippets"],
Soy_Template:["soy"],
Space: ["space"],
SPARQL: ["rq"],
SQL: ["sql"],
SQLServer: ["sqlserver"],
Stylus: ["styl|stylus"],
Expand All @@ -202,6 +204,7 @@ var supportedModes = {
Textile: ["textile"],
Toml: ["toml"],
TSX: ["tsx"],
Turtle: ["ttl"],
Twig: ["twig|swig"],
Typescript: ["ts|typescript|str"],
Vala: ["vala"],
Expand Down

0 comments on commit 2b8236e

Please sign in to comment.