Skip to content

Commit

Permalink
add more examples + fix csharp
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydowning committed Aug 21, 2024
1 parent fb7149f commit 8011a97
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 8 deletions.
54 changes: 48 additions & 6 deletions example.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,57 @@
example1: | # python
print('Hello World!')
bat-example: | # bat
ECHO Hello World!
example2: | # java
bibtex-example: | # bibtex
@book{HelloWorld!}
c-example: | # c
#include <stdio.h>
int main() {
printf("Hello World!");
return 0;
}
clojure-example: | # clojure
(println "Hello, World!")
coffeescript-example: | # coffee
console.log "Hello, World!"
cpp-example: | # c++
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
return 0;
}
csharp-example: | # csharp
public class HelloWorld
{
public static void Main(string[] args)
{
System.Console.WriteLine("Hello, World!");
}
}
css-example: | # css
.HelloWorld { }
python-example: | # python
print("Hello World!")
java-example: | # java
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
example3: | # js
console.log('Hello World!')
javascript-example: | # js
console.log("Hello World!")
example4: | # regex
regex-example: | # regex
[Hh]ello [Ww]orld!?
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const LANGUAGES = {
scopeName: "text.git-commit",
},
cpp: "source.cpp",
csharp: "source.csharp",
csharp: "source.cs",
css: "source.css",
cuda: {
name: "cuda-cpp",
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/injection.json
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@
"name": "meta.embedded.inline.csharp",
"patterns": [
{
"include": "source.csharp"
"include": "source.cs"
}
]
}
Expand Down

0 comments on commit 8011a97

Please sign in to comment.