PrismJS / PrismJS/prism

Hope to add a new language - aardio

Open
#3,493 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

language-definitions new language
Dominant language
JavaScript
Stars
13k
Forks
1.4k
Avg merge
15h 36m
Merged PRs (30d)
3

Description

Language
aardio, a desktop program development language

Additional resources
Keywords: begin|end|false|true|if|lambda|λ|else|elseif|class|function|return|while|do|namespace|select|case|catch|try|for|in|this|global|self|owner|var|def|null|and|not|or|break|continue|import|with|ctor|try|catch|eval|import|type|assert|assertf|error|rget|callex|errput|loadcode|dumpcode|collectgarbage|call|invoke|tostring|topointer|tonumber|sleep|execute|setlocale|setprivilege|loadcodex|reduce

Annotation symbol: //, /**/

code example:

import win.ui;
/*DSG{{*/
var winform = win.form(text="Multithreading - Getting Started";right=536;bottom=325)
winform.add(
button={cls="button";text="start thread";left=27;top=243;right=279;bottom=305;db=1;dl=1;dr=1;font=LOGFONT(h=-16);z=1};
edit={cls="edit";left=27;top=20;right=503;bottom=223;db=1;dl=1;dr=1;dt=1;edge=1;multiline=1;z=2}
)
/*}}*/

winform.button.oncommand = function(id,event){
	
	//single line comment
	winform.button.disabledText = {"✶";"✸";"✹";"✺";"✹";"✷"}	
	
	thread.invoke( 
		function(winform){
			for(i=1;3;1){
				sleep(1000);
				winform.edit.print("工作线程正在执行,时间:" + tostring( time() ) ); 
			} 
			winform.button.disabledText = null;
		},winform
	)
}

/*
	multi-line comment
*/

winform.show();
win.loopMessage();

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how Prism represents language definitions and compare the provided aardio keywords, comment markers, and code sample with existing language support. Done means aardio code is recognized with the requested syntax elements and the new definition is covered by the project's validation or highlighting tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.