Skip to content

Commit 2b8236e

Browse files
authored
Fix: update/add missing demo samples (#4975)
* Rename unmatched demo samples + Remove nix override thing * Add undeclared impls to modelist * Backfill samples for django, txt, mips
1 parent 6886b02 commit 2b8236e

File tree

9 files changed

+37
-1
lines changed

9 files changed

+37
-1
lines changed

demo/kitchen-sink/doclist.js

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ var docs = {
4848

4949
"docs/c9search.c9search_results": "C9 Search Results",
5050
"docs/mel.mel": "MEL",
51-
"docs/Nix.nix": "Nix"
5251
};
5352

5453
var ownSource = {

demo/kitchen-sink/docs/django.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% extends "base.html" %}
2+
3+
{% block title %}Ace Django Template{% endblock %}
4+
5+
{% block content %}
6+
<h1>Hello, {{ name|default:"World" }}!</h1>
7+
{% endblock %}
File renamed without changes.
File renamed without changes.
File renamed without changes.

demo/kitchen-sink/docs/mips.s

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Original source from https://eng.libretexts.org
2+
# Kann, Charles W., "Introduction To MIPS Assembly Language Programming" (2015). Open Textbooks. 2.
3+
# https://cupola.gettysburg.edu/oer/2
4+
5+
# Program File: Program2-1.asm
6+
# Author: Charles Kann
7+
# Purpose: First program, Hello World
8+
.text # Define the program instructions.
9+
main: # Label to define the main program.
10+
li $v0,4 # Load 4 into $v0 to indicate a print string.
11+
la $a0, greeting # Load the address of the greeting into $a0.
12+
syscall # Print greeting. The print is indicated by
13+
# $v0 having a value of 4, and the string to
14+
# print is stored at the address in $a0.
15+
li $v0, 10 # Load a 10 (halt) into $v0.
16+
syscall # The program ends.
17+
.data # Define the program data.
18+
greeting: .asciiz "Hello World" #The string to print.
File renamed without changes.

demo/kitchen-sink/docs/text.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This is just some text!
2+
3+
// These
4+
# are
5+
-- not
6+
<!-- comments -->
7+
(but indent actions work)
8+
9+
This is just some text!

src/ext/modelist.js

+3
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ var supportedModes = {
127127
LiveScript: ["ls"],
128128
Log: ["log"],
129129
LogiQL: ["logic|lql"],
130+
Logtalk: ["lgt"],
130131
LSL: ["lsl"],
131132
Lua: ["lua"],
132133
LuaPage: ["lp"],
@@ -190,6 +191,7 @@ var supportedModes = {
190191
snippets: ["snippets"],
191192
Soy_Template:["soy"],
192193
Space: ["space"],
194+
SPARQL: ["rq"],
193195
SQL: ["sql"],
194196
SQLServer: ["sqlserver"],
195197
Stylus: ["styl|stylus"],
@@ -202,6 +204,7 @@ var supportedModes = {
202204
Textile: ["textile"],
203205
Toml: ["toml"],
204206
TSX: ["tsx"],
207+
Turtle: ["ttl"],
205208
Twig: ["twig|swig"],
206209
Typescript: ["ts|typescript|str"],
207210
Vala: ["vala"],

0 commit comments

Comments
 (0)