Merge pull request #632 from redarguireda/master

added C support
This commit is contained in:
Jack 2020-11-27 13:48:11 +00:00 committed by GitHub
commit 7d5ef233fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 60 additions and 1 deletions

58
static/languages/c.json Normal file
View file

@ -0,0 +1,58 @@
{
"name":"c",
"leftToRight": true,
"words":[
"int",
"char",
"unsigned",
"float",
"void",
"main",
"union",
"long",
"double",
"printf",
"sprintf",
"if",
"else",
"struct",
"fork",
"switch",
"for",
"define",
"return",
"include",
"case",
"&&",
"||",
"break",
"bool",
"static",
"public",
"enum",
"typedef",
"private",
"exit",
"<stdio.h>",
"scanf",
"NULL",
"malloc",
"calloc",
"free",
"realloc",
"<string.h>",
"fgets",
"strcmp",
"strcpy",
"fputs",
"stdout",
"EOF",
"getc",
"while",
"fclose",
"fopen",
"do",
"fscanf",
"extern"
]
}

View file

@ -31,5 +31,6 @@
"vietnamese",
"vietnamese_1k",
"vietnamese_5k",
"python"
"python",
"c"
]