Add support for Lisp (#1297) * add emacs * rename to elisp * add elisp to components * add comment test * add heading test * WIP string test * update string tests * test symbols in strings * test arguments * test quoted symbol * lisp-property test * splice test * add keyword test * test for declare * test interactive * boolean test * test numbers * test defvar * fix greedy defun regex * test defun * test lambda * test car * test punctuation * use var instead of const * remove arrow functions * flatten language structure * remove unnecessary escaping * add lisp and emacs * add lisp * fix template strings * minify lisp * add example elisp file * simplify number * don't mark other def as keywords * dont mark other def as keyword in defun * make lambda a keyword only at the beginning * restore single quotes in components * double quote in elisp * minify elisp * quote keys in components * rename punctuation test * add semicolons elisp * undo prettier changes to components.js * add lisp to components.json * rename elisp to lisp * fix components.json * add minified lisp file * rename example lisp file * move lisp to first position * explain null initialized properties in lisp file * remove trailing commas * put lisp first in example file * add ifee for lisp file * update lisp min file * update show language assets * add components index min file * add emacs-lisp alias * change title of lisp example file * undo theme change * combine regex for parens * remove min index * remove unneeded example html * remove doubled string test * capitalize lisp in components * change string theme to match master * build assets after adding lisp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731
diff --git a/components.js b/components.js
index 2451142..8858f0f 100644
--- a/components.js
+++ b/components.js
@@ -1,2 +1,2 @@
-var components = {"core":{"meta":{"path":"components/prism-core.js","option":"mandatory"},"core":"Core"},"themes":{"meta":{"path":"themes/{id}.css","link":"index.html?theme={id}","exclusive":true},"prism":{"title":"Default","option":"default"},"prism-dark":"Dark","prism-funky":"Funky","prism-okaidia":{"title":"Okaidia","owner":"ocodia"},"prism-twilight":{"title":"Twilight","owner":"remybach"},"prism-coy":{"title":"Coy","owner":"tshedor"},"prism-solarizedlight":{"title":"Solarized Light","owner":"hectormatos2011 "},"prism-tomorrow":{"title":"Tomorrow Night","owner":"Rosey"}},"languages":{"meta":{"path":"components/prism-{id}","noCSS":true,"examplesPath":"examples/prism-{id}","addCheckAll":true},"markup":{"title":"Markup","alias":["html","xml","svg","mathml"],"aliasTitles":{"html":"HTML","xml":"XML","svg":"SVG","mathml":"MathML"},"option":"default"},"css":{"title":"CSS","option":"default"},"clike":{"title":"C-like","option":"default","overrideExampleHeader":true},"javascript":{"title":"JavaScript","require":"clike","alias":"js","option":"default"},"abap":{"title":"ABAP","owner":"dellagustin"},"actionscript":{"title":"ActionScript","require":"javascript","owner":"Golmote"},"ada":{"title":"Ada","owner":"Lucretia"},"apacheconf":{"title":"Apache Configuration","owner":"GuiTeK"},"apl":{"title":"APL","owner":"ngn"},"applescript":{"title":"AppleScript","owner":"Golmote"},"arduino":{"title":"Arduino","require":"cpp","owner":"eisbehr-"},"arff":{"title":"ARFF","owner":"Golmote"},"asciidoc":{"title":"AsciiDoc","owner":"Golmote"},"asm6502":{"title":"6502 Assembly","owner":"kzurawel"},"aspnet":{"title":"ASP.NET (C#)","require":"markup","owner":"nauzilus"},"autohotkey":{"title":"AutoHotkey","owner":"aviaryan"},"autoit":{"title":"AutoIt","owner":"Golmote"},"bash":{"title":"Bash","owner":"zeitgeist87"},"basic":{"title":"BASIC","owner":"Golmote"},"batch":{"title":"Batch","alias":"shell","owner":"Golmote"},"bison":{"title":"Bison","require":"c","owner":"Golmote"},"brainfuck":{"title":"Brainfuck","owner":"Golmote"},"bro":{"title":"Bro","owner":"wayward710"},"c":{"title":"C","require":"clike","owner":"zeitgeist87"},"csharp":{"title":"C#","require":"clike","alias":"dotnet","owner":"mvalipour"},"cpp":{"title":"C++","require":"c","owner":"zeitgeist87"},"coffeescript":{"title":"CoffeeScript","require":"javascript","owner":"R-osey"},"clojure":{"title":"Clojure","owner":"troglotit"},"crystal":{"title":"Crystal","require":"ruby","owner":"MakeNowJust"},"csp":{"title":"Content-Security-Policy","owner":"ScottHelme"},"css-extras":{"title":"CSS Extras","require":"css","owner":"milesj"},"d":{"title":"D","require":"clike","owner":"Golmote"},"dart":{"title":"Dart","require":"clike","owner":"Golmote"},"diff":{"title":"Diff","owner":"uranusjr"},"django":{"title":"Django/Jinja2","require":"markup","alias":"jinja2","owner":"romanvm"},"docker":{"title":"Docker","owner":"JustinBeckwith"},"eiffel":{"title":"Eiffel","owner":"Conaclos"},"elixir":{"title":"Elixir","owner":"Golmote"},"elm":{"title":"Elm","owner":"zwilias"},"erb":{"title":"ERB","require":["ruby","markup-templating"],"owner":"Golmote"},"erlang":{"title":"Erlang","owner":"Golmote"},"fsharp":{"title":"F#","require":"clike","owner":"simonreynolds7"},"flow":{"title":"Flow","require":"javascript","owner":"Golmote"},"fortran":{"title":"Fortran","owner":"Golmote"},"gherkin":{"title":"Gherkin","owner":"hason"},"git":{"title":"Git","owner":"lgiraudel"},"glsl":{"title":"GLSL","require":"clike","owner":"Golmote"},"go":{"title":"Go","require":"clike","owner":"arnehormann"},"graphql":{"title":"GraphQL","owner":"Golmote"},"groovy":{"title":"Groovy","require":"clike","owner":"robfletcher"},"haml":{"title":"Haml","require":"ruby","owner":"Golmote"},"handlebars":{"title":"Handlebars","require":"markup-templating","owner":"Golmote"},"haskell":{"title":"Haskell","owner":"bholst"},"haxe":{"title":"Haxe","require":"clike","owner":"Golmote"},"http":{"title":"HTTP","owner":"danielgtaylor"},"hpkp":{"title":"HTTP Public-Key-Pins","owner":"ScottHelme"},"hsts":{"title":"HTTP Strict-Transport-Security","owner":"ScottHelme"},"ichigojam":{"title":"IchigoJam","owner":"BlueCocoa"},"icon":{"title":"Icon","owner":"Golmote"},"inform7":{"title":"Inform 7","owner":"Golmote"},"ini":{"title":"Ini","owner":"aviaryan"},"io":{"title":"Io","owner":"AlesTsurko"},"j":{"title":"J","owner":"Golmote"},"java":{"title":"Java","require":"clike","owner":"sherblot"},"jolie":{"title":"Jolie","require":"clike","owner":"thesave"},"json":{"title":"JSON","owner":"CupOfTea696"},"julia":{"title":"Julia","owner":"cdagnino"},"keyman":{"title":"Keyman","owner":"mcdurdin"},"kotlin":{"title":"Kotlin","require":"clike","owner":"Golmote"},"latex":{"title":"LaTeX","owner":"japborst"},"less":{"title":"Less","require":"css","owner":"Golmote"},"liquid":{"title":"Liquid","owner":"cinhtau"},"livescript":{"title":"LiveScript","owner":"Golmote"},"lolcode":{"title":"LOLCODE","owner":"Golmote"},"lua":{"title":"Lua","owner":"Golmote"},"makefile":{"title":"Makefile","owner":"Golmote"},"markdown":{"title":"Markdown","require":"markup","owner":"Golmote"},"markup-templating":{"title":"Markup templating","require":"markup","owner":"Golmote"},"matlab":{"title":"MATLAB","owner":"Golmote"},"mel":{"title":"MEL","owner":"Golmote"},"mizar":{"title":"Mizar","owner":"Golmote"},"monkey":{"title":"Monkey","owner":"Golmote"},"n4js":{"title":"N4JS","require":"javascript","owner":"bsmith-n4"},"nasm":{"title":"NASM","owner":"rbmj"},"nginx":{"title":"nginx","owner":"westonganger","require":"clike"},"nim":{"title":"Nim","owner":"Golmote"},"nix":{"title":"Nix","owner":"Golmote"},"nsis":{"title":"NSIS","owner":"idleberg"},"objectivec":{"title":"Objective-C","require":"c","owner":"uranusjr"},"ocaml":{"title":"OCaml","owner":"Golmote"},"opencl":{"title":"OpenCL","require":"cpp","overrideExampleHeader":true,"owner":"Milania1"},"oz":{"title":"Oz","owner":"Golmote"},"parigp":{"title":"PARI/GP","owner":"Golmote"},"parser":{"title":"Parser","require":"markup","owner":"Golmote"},"pascal":{"title":"Pascal","owner":"Golmote"},"perl":{"title":"Perl","owner":"Golmote"},"php":{"title":"PHP","require":["clike","markup-templating"],"owner":"milesj"},"php-extras":{"title":"PHP Extras","require":"php","owner":"milesj"},"plsql":{"title":"PL/SQL","require":"sql","owner":"Golmote"},"powershell":{"title":"PowerShell","owner":"nauzilus"},"processing":{"title":"Processing","require":"clike","owner":"Golmote"},"prolog":{"title":"Prolog","owner":"Golmote"},"properties":{"title":".properties","owner":"Golmote"},"protobuf":{"title":"Protocol Buffers","require":"clike","owner":"just-boris"},"pug":{"title":"Pug","require":"javascript","owner":"Golmote"},"puppet":{"title":"Puppet","owner":"Golmote"},"pure":{"title":"Pure","owner":"Golmote"},"python":{"title":"Python","owner":"multipetros"},"q":{"title":"Q (kdb+ database)","owner":"Golmote"},"qore":{"title":"Qore","require":"clike","owner":"temnroegg"},"r":{"title":"R","owner":"Golmote"},"jsx":{"title":"React JSX","require":["markup","javascript"],"owner":"vkbansal"},"tsx":{"title":"React TSX","require":["jsx","typescript"]},"renpy":{"title":"Ren'py","owner":"HyuchiaDiego"},"reason":{"title":"Reason","require":"clike","owner":"Golmote"},"rest":{"title":"reST (reStructuredText)","owner":"Golmote"},"rip":{"title":"Rip","owner":"ravinggenius"},"roboconf":{"title":"Roboconf","owner":"Golmote"},"ruby":{"title":"Ruby","require":"clike","owner":"samflores"},"rust":{"title":"Rust","owner":"Golmote"},"sas":{"title":"SAS","owner":"Golmote"},"sass":{"title":"Sass (Sass)","require":"css","owner":"Golmote"},"scss":{"title":"Sass (Scss)","require":"css","owner":"MoOx"},"scala":{"title":"Scala","require":"java","owner":"jozic"},"scheme":{"title":"Scheme","owner":"bacchus123"},"smalltalk":{"title":"Smalltalk","owner":"Golmote"},"smarty":{"title":"Smarty","require":"markup-templating","owner":"Golmote"},"sql":{"title":"SQL","owner":"multipetros"},"stylus":{"title":"Stylus","owner":"vkbansal"},"swift":{"title":"Swift","require":"clike","owner":"chrischares"},"tcl":{"title":"Tcl","owner":"PeterChaplin"},"textile":{"title":"Textile","require":"markup","owner":"Golmote"},"twig":{"title":"Twig","require":"markup","owner":"brandonkelly"},"typescript":{"title":"TypeScript","require":"javascript","alias":"ts","owner":"vkbansal"},"vbnet":{"title":"VB.Net","require":"basic","owner":"Bigsby"},"verilog":{"title":"Verilog","owner":"a-rey"},"vhdl":{"title":"VHDL","owner":"a-rey"},"vim":{"title":"vim","owner":"westonganger"},"wiki":{"title":"Wiki markup","require":"markup","owner":"Golmote"},"xeora":{"title":"Xeora","require":"markup","owner":"freakmaxi"},"xojo":{"title":"Xojo (REALbasic)","owner":"Golmote"},"yaml":{"title":"YAML","owner":"hason"}},"plugins":{"meta":{"path":"plugins/{id}/prism-{id}","link":"plugins/{id}/"},"line-highlight":"Line Highlight","line-numbers":{"title":"Line Numbers","owner":"kuba-kubula"},"show-invisibles":"Show Invisibles","autolinker":"Autolinker","wpd":"WebPlatform Docs","custom-class":{"title":"Custom Class","owner":"dvkndn","noCSS":true},"file-highlight":{"title":"File Highlight","noCSS":true},"show-language":{"title":"Show Language","owner":"nauzilus","noCSS":true,"require":"toolbar"},"jsonp-highlight":{"title":"JSONP Highlight","noCSS":true,"owner":"nauzilus"},"highlight-keywords":{"title":"Highlight Keywords","owner":"vkbansal","noCSS":true},"remove-initial-line-feed":{"title":"Remove initial line feed","owner":"Golmote","noCSS":true},"previewers":{"title":"Previewers","owner":"Golmote"},"autoloader":{"title":"Autoloader","owner":"Golmote","noCSS":true},"keep-markup":{"title":"Keep Markup","owner":"Golmote","after":"normalize-whitespace","noCSS":true},"command-line":{"title":"Command Line","owner":"chriswells0"},"unescaped-markup":"Unescaped Markup","normalize-whitespace":{"title":"Normalize Whitespace","owner":"zeitgeist87","after":"unescaped-markup","noCSS":true},"data-uri-highlight":{"title":"Data-URI Highlight","owner":"Golmote","noCSS":true},"toolbar":{"title":"Toolbar","owner":"mAAdhaTTah"},"copy-to-clipboard":{"title":"Copy to Clipboard Button","owner":"mAAdhaTTah","require":"toolbar","noCSS":true}}};
+var components = {"core":{"meta":{"path":"components/prism-core.js","option":"mandatory"},"core":"Core"},"themes":{"meta":{"path":"themes/{id}.css","link":"index.html?theme={id}","exclusive":true},"prism":{"title":"Default","option":"default"},"prism-dark":"Dark","prism-funky":"Funky","prism-okaidia":{"title":"Okaidia","owner":"ocodia"},"prism-twilight":{"title":"Twilight","owner":"remybach"},"prism-coy":{"title":"Coy","owner":"tshedor"},"prism-solarizedlight":{"title":"Solarized Light","owner":"hectormatos2011 "},"prism-tomorrow":{"title":"Tomorrow Night","owner":"Rosey"}},"languages":{"meta":{"path":"components/prism-{id}","noCSS":true,"examplesPath":"examples/prism-{id}","addCheckAll":true},"markup":{"title":"Markup","alias":["html","xml","svg","mathml"],"aliasTitles":{"html":"HTML","xml":"XML","svg":"SVG","mathml":"MathML"},"option":"default"},"css":{"title":"CSS","option":"default"},"clike":{"title":"C-like","option":"default","overrideExampleHeader":true},"javascript":{"title":"JavaScript","require":"clike","alias":"js","option":"default"},"abap":{"title":"ABAP","owner":"dellagustin"},"actionscript":{"title":"ActionScript","require":"javascript","owner":"Golmote"},"ada":{"title":"Ada","owner":"Lucretia"},"apacheconf":{"title":"Apache Configuration","owner":"GuiTeK"},"apl":{"title":"APL","owner":"ngn"},"applescript":{"title":"AppleScript","owner":"Golmote"},"arduino":{"title":"Arduino","require":"cpp","owner":"eisbehr-"},"arff":{"title":"ARFF","owner":"Golmote"},"asciidoc":{"title":"AsciiDoc","owner":"Golmote"},"asm6502":{"title":"6502 Assembly","owner":"kzurawel"},"aspnet":{"title":"ASP.NET (C#)","require":"markup","owner":"nauzilus"},"autohotkey":{"title":"AutoHotkey","owner":"aviaryan"},"autoit":{"title":"AutoIt","owner":"Golmote"},"bash":{"title":"Bash","owner":"zeitgeist87"},"basic":{"title":"BASIC","owner":"Golmote"},"batch":{"title":"Batch","alias":"shell","owner":"Golmote"},"bison":{"title":"Bison","require":"c","owner":"Golmote"},"brainfuck":{"title":"Brainfuck","owner":"Golmote"},"bro":{"title":"Bro","owner":"wayward710"},"c":{"title":"C","require":"clike","owner":"zeitgeist87"},"csharp":{"title":"C#","require":"clike","alias":"dotnet","owner":"mvalipour"},"cpp":{"title":"C++","require":"c","owner":"zeitgeist87"},"coffeescript":{"title":"CoffeeScript","require":"javascript","owner":"R-osey"},"clojure":{"title":"Clojure","owner":"troglotit"},"crystal":{"title":"Crystal","require":"ruby","owner":"MakeNowJust"},"csp":{"title":"Content-Security-Policy","owner":"ScottHelme"},"css-extras":{"title":"CSS Extras","require":"css","owner":"milesj"},"d":{"title":"D","require":"clike","owner":"Golmote"},"dart":{"title":"Dart","require":"clike","owner":"Golmote"},"diff":{"title":"Diff","owner":"uranusjr"},"django":{"title":"Django/Jinja2","require":"markup","alias":"jinja2","owner":"romanvm"},"docker":{"title":"Docker","owner":"JustinBeckwith"},"eiffel":{"title":"Eiffel","owner":"Conaclos"},"elixir":{"title":"Elixir","owner":"Golmote"},"elm":{"title":"Elm","owner":"zwilias"},"erb":{"title":"ERB","require":["ruby","markup-templating"],"owner":"Golmote"},"erlang":{"title":"Erlang","owner":"Golmote"},"fsharp":{"title":"F#","require":"clike","owner":"simonreynolds7"},"flow":{"title":"Flow","require":"javascript","owner":"Golmote"},"fortran":{"title":"Fortran","owner":"Golmote"},"gherkin":{"title":"Gherkin","owner":"hason"},"git":{"title":"Git","owner":"lgiraudel"},"glsl":{"title":"GLSL","require":"clike","owner":"Golmote"},"go":{"title":"Go","require":"clike","owner":"arnehormann"},"graphql":{"title":"GraphQL","owner":"Golmote"},"groovy":{"title":"Groovy","require":"clike","owner":"robfletcher"},"haml":{"title":"Haml","require":"ruby","owner":"Golmote"},"handlebars":{"title":"Handlebars","require":"markup-templating","owner":"Golmote"},"haskell":{"title":"Haskell","owner":"bholst"},"haxe":{"title":"Haxe","require":"clike","owner":"Golmote"},"http":{"title":"HTTP","owner":"danielgtaylor"},"hpkp":{"title":"HTTP Public-Key-Pins","owner":"ScottHelme"},"hsts":{"title":"HTTP Strict-Transport-Security","owner":"ScottHelme"},"ichigojam":{"title":"IchigoJam","owner":"BlueCocoa"},"icon":{"title":"Icon","owner":"Golmote"},"inform7":{"title":"Inform 7","owner":"Golmote"},"ini":{"title":"Ini","owner":"aviaryan"},"io":{"title":"Io","owner":"AlesTsurko"},"j":{"title":"J","owner":"Golmote"},"java":{"title":"Java","require":"clike","owner":"sherblot"},"jolie":{"title":"Jolie","require":"clike","owner":"thesave"},"json":{"title":"JSON","owner":"CupOfTea696"},"julia":{"title":"Julia","owner":"cdagnino"},"keyman":{"title":"Keyman","owner":"mcdurdin"},"kotlin":{"title":"Kotlin","require":"clike","owner":"Golmote"},"latex":{"title":"LaTeX","owner":"japborst"},"less":{"title":"Less","require":"css","owner":"Golmote"},"liquid":{"title":"Liquid","owner":"cinhtau"},"lisp":{"title":"Lisp","owner":"JuanCaicedo","alias":["emacs","elisp","emacs-lisp"]},"livescript":{"title":"LiveScript","owner":"Golmote"},"lolcode":{"title":"LOLCODE","owner":"Golmote"},"lua":{"title":"Lua","owner":"Golmote"},"makefile":{"title":"Makefile","owner":"Golmote"},"markdown":{"title":"Markdown","require":"markup","owner":"Golmote"},"markup-templating":{"title":"Markup templating","require":"markup","owner":"Golmote"},"matlab":{"title":"MATLAB","owner":"Golmote"},"mel":{"title":"MEL","owner":"Golmote"},"mizar":{"title":"Mizar","owner":"Golmote"},"monkey":{"title":"Monkey","owner":"Golmote"},"n4js":{"title":"N4JS","require":"javascript","owner":"bsmith-n4"},"nasm":{"title":"NASM","owner":"rbmj"},"nginx":{"title":"nginx","owner":"westonganger","require":"clike"},"nim":{"title":"Nim","owner":"Golmote"},"nix":{"title":"Nix","owner":"Golmote"},"nsis":{"title":"NSIS","owner":"idleberg"},"objectivec":{"title":"Objective-C","require":"c","owner":"uranusjr"},"ocaml":{"title":"OCaml","owner":"Golmote"},"opencl":{"title":"OpenCL","require":"cpp","overrideExampleHeader":true,"owner":"Milania1"},"oz":{"title":"Oz","owner":"Golmote"},"parigp":{"title":"PARI/GP","owner":"Golmote"},"parser":{"title":"Parser","require":"markup","owner":"Golmote"},"pascal":{"title":"Pascal","owner":"Golmote"},"perl":{"title":"Perl","owner":"Golmote"},"php":{"title":"PHP","require":["clike","markup-templating"],"owner":"milesj"},"php-extras":{"title":"PHP Extras","require":"php","owner":"milesj"},"plsql":{"title":"PL/SQL","require":"sql","owner":"Golmote"},"powershell":{"title":"PowerShell","owner":"nauzilus"},"processing":{"title":"Processing","require":"clike","owner":"Golmote"},"prolog":{"title":"Prolog","owner":"Golmote"},"properties":{"title":".properties","owner":"Golmote"},"protobuf":{"title":"Protocol Buffers","require":"clike","owner":"just-boris"},"pug":{"title":"Pug","require":"javascript","owner":"Golmote"},"puppet":{"title":"Puppet","owner":"Golmote"},"pure":{"title":"Pure","owner":"Golmote"},"python":{"title":"Python","owner":"multipetros"},"q":{"title":"Q (kdb+ database)","owner":"Golmote"},"qore":{"title":"Qore","require":"clike","owner":"temnroegg"},"r":{"title":"R","owner":"Golmote"},"jsx":{"title":"React JSX","require":["markup","javascript"],"owner":"vkbansal"},"tsx":{"title":"React TSX","require":["jsx","typescript"]},"renpy":{"title":"Ren'py","owner":"HyuchiaDiego"},"reason":{"title":"Reason","require":"clike","owner":"Golmote"},"rest":{"title":"reST (reStructuredText)","owner":"Golmote"},"rip":{"title":"Rip","owner":"ravinggenius"},"roboconf":{"title":"Roboconf","owner":"Golmote"},"ruby":{"title":"Ruby","require":"clike","owner":"samflores"},"rust":{"title":"Rust","owner":"Golmote"},"sas":{"title":"SAS","owner":"Golmote"},"sass":{"title":"Sass (Sass)","require":"css","owner":"Golmote"},"scss":{"title":"Sass (Scss)","require":"css","owner":"MoOx"},"scala":{"title":"Scala","require":"java","owner":"jozic"},"scheme":{"title":"Scheme","owner":"bacchus123"},"smalltalk":{"title":"Smalltalk","owner":"Golmote"},"smarty":{"title":"Smarty","require":"markup-templating","owner":"Golmote"},"sql":{"title":"SQL","owner":"multipetros"},"stylus":{"title":"Stylus","owner":"vkbansal"},"swift":{"title":"Swift","require":"clike","owner":"chrischares"},"tcl":{"title":"Tcl","owner":"PeterChaplin"},"textile":{"title":"Textile","require":"markup","owner":"Golmote"},"twig":{"title":"Twig","require":"markup","owner":"brandonkelly"},"typescript":{"title":"TypeScript","require":"javascript","alias":"ts","owner":"vkbansal"},"vbnet":{"title":"VB.Net","require":"basic","owner":"Bigsby"},"verilog":{"title":"Verilog","owner":"a-rey"},"vhdl":{"title":"VHDL","owner":"a-rey"},"vim":{"title":"vim","owner":"westonganger"},"wiki":{"title":"Wiki markup","require":"markup","owner":"Golmote"},"xeora":{"title":"Xeora","require":"markup","owner":"freakmaxi"},"xojo":{"title":"Xojo (REALbasic)","owner":"Golmote"},"yaml":{"title":"YAML","owner":"hason"}},"plugins":{"meta":{"path":"plugins/{id}/prism-{id}","link":"plugins/{id}/"},"line-highlight":"Line Highlight","line-numbers":{"title":"Line Numbers","owner":"kuba-kubula"},"show-invisibles":"Show Invisibles","autolinker":"Autolinker","wpd":"WebPlatform Docs","custom-class":{"title":"Custom Class","owner":"dvkndn","noCSS":true},"file-highlight":{"title":"File Highlight","noCSS":true},"show-language":{"title":"Show Language","owner":"nauzilus","noCSS":true,"require":"toolbar"},"jsonp-highlight":{"title":"JSONP Highlight","noCSS":true,"owner":"nauzilus"},"highlight-keywords":{"title":"Highlight Keywords","owner":"vkbansal","noCSS":true},"remove-initial-line-feed":{"title":"Remove initial line feed","owner":"Golmote","noCSS":true},"previewers":{"title":"Previewers","owner":"Golmote"},"autoloader":{"title":"Autoloader","owner":"Golmote","noCSS":true},"keep-markup":{"title":"Keep Markup","owner":"Golmote","after":"normalize-whitespace","noCSS":true},"command-line":{"title":"Command Line","owner":"chriswells0"},"unescaped-markup":"Unescaped Markup","normalize-whitespace":{"title":"Normalize Whitespace","owner":"zeitgeist87","after":"unescaped-markup","noCSS":true},"data-uri-highlight":{"title":"Data-URI Highlight","owner":"Golmote","noCSS":true},"toolbar":{"title":"Toolbar","owner":"mAAdhaTTah"},"copy-to-clipboard":{"title":"Copy to Clipboard Button","owner":"mAAdhaTTah","require":"toolbar","noCSS":true}}};
if (typeof module !== 'undefined' && module.exports) { module.exports = components; }
\ No newline at end of file
diff --git a/components.json b/components.json
index 9a4af4c..c276ef6 100644
--- a/components.json
+++ b/components.json
@@ -373,6 +373,11 @@
"title": "Liquid",
"owner": "cinhtau"
},
+ "lisp": {
+ "title": "Lisp",
+ "owner": "JuanCaicedo",
+ "alias": ["emacs", "elisp", "emacs-lisp"]
+ },
"livescript": {
"title": "LiveScript",
"owner": "Golmote"
diff --git a/components/prism-lisp.js b/components/prism-lisp.js
new file mode 100644
index 0000000..b8b0451
--- /dev/null
+++ b/components/prism-lisp.js
@@ -0,0 +1,197 @@
+(function (Prism) {
+ // Functions to construct regular expressions
+ // simple form
+ // e.g. (interactive ... or (interactive)
+ function simple_form(name) {
+ return new RegExp('(\\()' + name + '(?=[\\s\\)])');
+ }
+ // booleans and numbers
+ function primitive(pattern) {
+ return new RegExp('([\\s([])' + pattern + '(?=[\\s)])');
+ }
+
+ // Patterns in regular expressions
+
+ // Symbol name. See https://www.gnu.org/software/emacs/manual/html_node/elisp/Symbol-Type.html
+ // & and : are excluded as they are usually used for special purposes
+ var symbol = '[-+*/_~!@$%^=<>{}\\w]+';
+ // symbol starting with & used in function arguments
+ var marker = '&' + symbol;
+ // Open parenthesis for look-behind
+ var par = '(\\()';
+ var endpar = '(?=\\))';
+ // End the pattern with look-ahead space
+ var space = '(?=\\s)';
+
+ var language = {
+ // Three or four semicolons are considered a heading.
+ // See https://www.gnu.org/software/emacs/manual/html_node/elisp/Comment-Tips.html
+ heading: {
+ pattern: /;;;.*/,
+ alias: ['comment', 'title']
+ },
+ comment: /;.*/,
+ string: {
+ pattern: /"(?:[^"\\]*|\\.)*"/,
+ greedy: true,
+ inside: {
+ argument: /[-A-Z]+(?=[.,\s])/,
+ symbol: new RegExp('`' + symbol + "'")
+ }
+ },
+ 'quoted-symbol': {
+ pattern: new RegExp("#?'" + symbol),
+ alias: ['variable', 'symbol']
+ },
+ 'lisp-property': {
+ pattern: new RegExp(':' + symbol),
+ alias: 'property'
+ },
+ splice: {
+ pattern: new RegExp(',@?' + symbol),
+ alias: ['symbol', 'variable']
+ },
+ keyword: [
+ {
+ pattern: new RegExp(
+ par +
+ '(?:(?:lexical-)?let\\*?|(?:cl-)?letf|if|when|while|unless|cons|cl-loop|and|or|not|cond|setq|error|message|null|require|provide|use-package)' +
+ space
+ ),
+ lookbehind: true
+ },
+ {
+ pattern: new RegExp(
+ par + '(?:for|do|collect|return|finally|append|concat|in|by)' + space
+ ),
+ lookbehind: true
+ },
+ ],
+ declare: {
+ pattern: simple_form('declare'),
+ lookbehind: true,
+ alias: 'keyword'
+ },
+ interactive: {
+ pattern: simple_form('interactive'),
+ lookbehind: true,
+ alias: 'keyword'
+ },
+ boolean: {
+ pattern: primitive('(?:t|nil)'),
+ lookbehind: true
+ },
+ number: {
+ pattern: primitive('[-+]?\\d+(?:\\.\\d*)?'),
+ lookbehind: true
+ },
+ defvar: {
+ pattern: new RegExp(par + 'def(?:var|const|custom|group)\\s+' + symbol),
+ lookbehind: true,
+ inside: {
+ keyword: /^def[a-z]+/,
+ variable: new RegExp(symbol)
+ }
+ },
+ defun: {
+ pattern: new RegExp(
+ par +
+ '(?:cl-)?(?:defun\\*?|defmacro)\\s+' +
+ symbol +
+ '\\s+\\([\\s\\S]*?\\)'
+ ),
+ lookbehind: true,
+ inside: {
+ keyword: /^(?:cl-)?def\S+/,
+ // See below, this property needs to be defined later so that it can
+ // reference the language object.
+ arguments: null,
+ function: {
+ pattern: new RegExp('(^\\s)' + symbol),
+ lookbehind: true
+ },
+ punctuation: /[()]/
+ }
+ },
+ lambda: {
+ pattern: new RegExp(par + 'lambda\\s+\\((?:&?' + symbol + '\\s*)*\\)'),
+ lookbehind: true,
+ inside: {
+ keyword: /^lambda/,
+ // See below, this property needs to be defined later so that it can
+ // reference the language object.
+ arguments: null,
+ punctuation: /[()]/
+ }
+ },
+ car: {
+ pattern: new RegExp(par + symbol),
+ lookbehind: true
+ },
+ punctuation: [
+ // open paren, brackets, and close paren
+ /(['`,]?\(|[)\[\]])/,
+ // cons
+ {
+ pattern: /(\s)\.(?=\s)/,
+ lookbehind: true
+ },
+ ]
+ };
+
+ var arg = {
+ 'lisp-marker': new RegExp(marker),
+ rest: {
+ argument: {
+ pattern: new RegExp(symbol),
+ alias: 'variable'
+ },
+ varform: {
+ pattern: new RegExp(par + symbol + '\\s+\\S[\\s\\S]*' + endpar),
+ lookbehind: true,
+ inside: {
+ string: language.string,
+ boolean: language.boolean,
+ number: language.number,
+ symbol: language.symbol,
+ punctuation: /[()]/
+ }
+ }
+ }
+ };
+
+ var forms = '\\S+(?:\\s+\\S+)*';
+
+ var arglist = {
+ pattern: new RegExp(par + '[\\s\\S]*' + endpar),
+ lookbehind: true,
+ inside: {
+ 'rest-vars': {
+ pattern: new RegExp('&(?:rest|body)\\s+' + forms),
+ inside: arg
+ },
+ 'other-marker-vars': {
+ pattern: new RegExp('&(?:optional|aux)\\s+' + forms),
+ inside: arg
+ },
+ keys: {
+ pattern: new RegExp('&key\\s+' + forms + '(?:\\s+&allow-other-keys)?'),
+ inside: arg
+ },
+ argument: {
+ pattern: new RegExp(symbol),
+ alias: 'variable'
+ },
+ punctuation: /[()]/
+ }
+ };
+
+ language['lambda'].inside.arguments = arglist;
+ language['defun'].inside.arguments = Prism.util.clone(arglist);
+ language['defun'].inside.arguments.inside.sublist = arglist;
+
+ Prism.languages.lisp = language;
+ Prism.languages.elisp = language;
+ Prism.languages.emacs = language;
+ Prism.languages['emacs-lisp'] = language;
+}(Prism));
\ No newline at end of file
diff --git a/components/prism-lisp.min.js b/components/prism-lisp.min.js
new file mode 100644
index 0000000..6aa700b
--- /dev/null
+++ b/components/prism-lisp.min.js
@@ -0,0 +1 @@
+!function(e){function n(e){return new RegExp("(\\()"+e+"(?=[\\s\\)])")}function a(e){return new RegExp("([\\s([])"+e+"(?=[\\s)])")}var t="[-+*/_~!@$%^=<>{}\\w]+",r="&"+t,i="(\\()",s="(?=\\))",o="(?=\\s)",l={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]*|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:new RegExp("`"+t+"'")}},"quoted-symbol":{pattern:new RegExp("#?'"+t),alias:["variable","symbol"]},"lisp-property":{pattern:new RegExp(":"+t),alias:"property"},splice:{pattern:new RegExp(",@?"+t),alias:["symbol","variable"]},keyword:[{pattern:new RegExp(i+"(?:(?:lexical-)?let\\*?|(?:cl-)?letf|if|when|while|unless|cons|cl-loop|and|or|not|cond|setq|error|message|null|require|provide|use-package)"+o),lookbehind:!0},{pattern:new RegExp(i+"(?:for|do|collect|return|finally|append|concat|in|by)"+o),lookbehind:!0}],declare:{pattern:n("declare"),lookbehind:!0,alias:"keyword"},interactive:{pattern:n("interactive"),lookbehind:!0,alias:"keyword"},"boolean":{pattern:a("(?:t|nil)"),lookbehind:!0},number:{pattern:a("[-+]?\\d+(?:\\.\\d*)?"),lookbehind:!0},defvar:{pattern:new RegExp(i+"def(?:var|const|custom|group)\\s+"+t),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:new RegExp(t)}},defun:{pattern:new RegExp(i+"(?:cl-)?(?:defun\\*?|defmacro)\\s+"+t+"\\s+\\([\\s\\S]*?\\)"),lookbehind:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,"function":{pattern:new RegExp("(^\\s)"+t),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:new RegExp(i+"lambda\\s+\\((?:&?"+t+"\\s*)*\\)"),lookbehind:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:new RegExp(i+t),lookbehind:!0},punctuation:[/(['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},p={"lisp-marker":new RegExp(r),rest:{argument:{pattern:new RegExp(t),alias:"variable"},varform:{pattern:new RegExp(i+t+"\\s+\\S[\\s\\S]*"+s),lookbehind:!0,inside:{string:l.string,"boolean":l.boolean,number:l.number,symbol:l.symbol,punctuation:/[()]/}}}},d="\\S+(?:\\s+\\S+)*",u={pattern:new RegExp(i+"[\\s\\S]*"+s),lookbehind:!0,inside:{"rest-vars":{pattern:new RegExp("&(?:rest|body)\\s+"+d),inside:p},"other-marker-vars":{pattern:new RegExp("&(?:optional|aux)\\s+"+d),inside:p},keys:{pattern:new RegExp("&key\\s+"+d+"(?:\\s+&allow-other-keys)?"),inside:p},argument:{pattern:new RegExp(t),alias:"variable"},punctuation:/[()]/}};l.lambda.inside.arguments=u,l.defun.inside.arguments=e.util.clone(u),l.defun.inside.arguments.inside.sublist=u,e.languages.lisp=l,e.languages.elisp=l,e.languages.emacs=l,e.languages["emacs-lisp"]=l}(Prism);
\ No newline at end of file
diff --git a/examples/prism-lisp.html b/examples/prism-lisp.html
new file mode 100644
index 0000000..436d5c9
--- /dev/null
+++ b/examples/prism-lisp.html
@@ -0,0 +1,46 @@
+<h2>Comments</h2>
+<pre><code>;; (foo bar)</code></pre>
+
+<h2>Strings</h2>
+<pre><code>(foo "bar")</code></pre>
+
+<h3>With nested symbols</h3>
+<pre><code>(foo "A string with a `symbol ")</code></pre>
+
+<h3>With nested arguments</h3>
+<pre><code>(foo "A string with an ARGUMENT ")</code></pre>
+
+<h2>Quoted symbols</h2>
+<pre><code>(foo #'bar)</code></pre>
+
+<h2>Lisp properties</h2>
+<pre><code>(foo :bar)</code></pre>
+
+<h2>Splices</h2>
+<pre><code>(foo ,bar ,@bar)</code></pre>
+
+<h2>Keywords</h2>
+<pre><code>(let foo (bar arg))</code></pre>
+
+<h2>Declarations</h2>
+<pre><code>(declare foo)</code></pre>
+
+<h2>Booleans</h2>
+<pre><code>(foo t)</code></pre>
+<pre><code>(foo nil)</code></pre>
+
+<h2>Numbers</h2>
+<pre><code>(foo 1)</code></pre>
+<pre><code>(foo -1.5)</code></pre>
+
+<h2>Definitions</h2>
+<pre><code>(defvar bar 23)</code></pre>
+<pre><code>(defcustom bar 23)</code></pre>
+
+<h2>Function definitions</h2>
+<pre><code>(defun multiply-by-seven (number)
+ "Multiply NUMBER by seven."
+ (* 7 number))</code></pre>
+
+<h2>Lambda expressions</h2>
+<pre><code>(lambda (number) (* 7 number))</code></pre>
\ No newline at end of file
diff --git a/tests/languages/lisp/boolean_feature.test b/tests/languages/lisp/boolean_feature.test
new file mode 100644
index 0000000..35d2ac1
--- /dev/null
+++ b/tests/languages/lisp/boolean_feature.test
@@ -0,0 +1,17 @@
+(t)
+(nil)
+(foo t)
+[t ]
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("], ["boolean", "t"], ["punctuation", ")"],
+ ["punctuation", "("], ["boolean", "nil"], ["punctuation", ")"],
+ ["punctuation", "("], ["car", "foo"], ["boolean", "t"], ["punctuation", ")"],
+ ["punctuation", "["], ["boolean", "t"], ["punctuation", "]"]
+]
+
+----------------------------------------------------
+
+Checks for booleans.
diff --git a/tests/languages/lisp/car_feature.test b/tests/languages/lisp/car_feature.test
new file mode 100644
index 0000000..24846bb
--- /dev/null
+++ b/tests/languages/lisp/car_feature.test
@@ -0,0 +1,13 @@
+(foo)
+(foo bar)
+
+----------------------------------------------------
+
+[
+ ["punctuation","("], ["car", "foo"], ["punctuation",")"],
+ ["punctuation","("], ["car", "foo"], " bar", ["punctuation",")"]
+]
+
+----------------------------------------------------
+
+Checks for car.
\ No newline at end of file
diff --git a/tests/languages/lisp/comment_feature.test b/tests/languages/lisp/comment_feature.test
new file mode 100644
index 0000000..47788a9
--- /dev/null
+++ b/tests/languages/lisp/comment_feature.test
@@ -0,0 +1,11 @@
+;; h1
+
+----------------------------------------------------
+
+[
+ ["comment", ";; h1"]
+]
+
+----------------------------------------------------
+
+Checks for comments.
diff --git a/tests/languages/lisp/declare_feature.test b/tests/languages/lisp/declare_feature.test
new file mode 100644
index 0000000..5aaf52f
--- /dev/null
+++ b/tests/languages/lisp/declare_feature.test
@@ -0,0 +1,16 @@
+(declare)
+(declare a)
+(declare
+a)
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("], ["declare", "declare"], ["punctuation", ")"],
+ ["punctuation", "("], ["declare", "declare"], " a", ["punctuation", ")"],
+ ["punctuation", "("], ["declare", "declare"], "\r\na", ["punctuation", ")"]
+]
+
+----------------------------------------------------
+
+Checks for declare.
diff --git a/tests/languages/lisp/defun_feature.test b/tests/languages/lisp/defun_feature.test
new file mode 100644
index 0000000..b9c1f7f
--- /dev/null
+++ b/tests/languages/lisp/defun_feature.test
@@ -0,0 +1,27 @@
+(defun foo ())
+(defun foo (bar))
+(defun foo (bar &body arg1) )
+(defun foo (bar &rest arg1) )
+(defun foo (bar &body arg1 arg2) )
+(defun foo (bar &key arg1) )
+(defun foo (bar &key arg1 &allow-other-keys) )
+(defun foo (&optional arg1) )
+(defun defabc ())
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("], ["defun", [ ["keyword", "defun" ], ["function", "foo"], ["punctuation", "("], ["arguments", []], ["punctuation", ")"]]], ["punctuation", ")"],
+ ["punctuation", "("], ["defun", [ ["keyword", "defun" ], ["function", "foo"], ["punctuation", "("], ["arguments", [[ "argument", "bar" ]]], ["punctuation", ")"]]], ["punctuation", ")"],
+ ["punctuation", "("], ["defun", [ ["keyword", "defun" ], ["function", "foo"], ["punctuation", "("], ["arguments", [[ "argument", "bar" ], ["rest-vars", [["lisp-marker", "&body" ], ["argument", "arg1"]]]]], ["punctuation", ")"]] ], ["punctuation", ")"],
+ ["punctuation", "("], ["defun", [ ["keyword", "defun" ], ["function", "foo"], ["punctuation", "("], ["arguments", [[ "argument", "bar" ], ["rest-vars", [["lisp-marker", "&rest" ], ["argument", "arg1"]]]]], ["punctuation", ")"]] ], ["punctuation", ")"],
+ ["punctuation", "("], ["defun", [ ["keyword", "defun" ], ["function", "foo"], ["punctuation", "("], ["arguments", [[ "argument", "bar" ], ["rest-vars", [["lisp-marker", "&body" ], ["argument", "arg1"], ["argument", "arg2"]]]]], ["punctuation", ")"]] ], ["punctuation", ")"],
+ ["punctuation", "("], ["defun", [ ["keyword", "defun" ], ["function", "foo"], ["punctuation", "("], ["arguments", [[ "argument", "bar" ], ["keys", [["lisp-marker", "&key" ], ["argument", "arg1"]]]]], ["punctuation", ")"]] ], ["punctuation", ")"],
+ ["punctuation", "("], ["defun", [ ["keyword", "defun" ], ["function", "foo"], ["punctuation", "("], ["arguments", [[ "argument", "bar" ], ["keys", [["lisp-marker", "&key" ], ["argument", "arg1"], ["lisp-marker", "&allow-other-keys"]]]]], ["punctuation", ")"]] ], ["punctuation", ")"],
+ ["punctuation", "("], ["defun", [ ["keyword", "defun" ], ["function", "foo"], ["punctuation", "("], ["arguments", [["other-marker-vars", [["lisp-marker", "&optional" ], ["argument", "arg1"]]]]], ["punctuation", ")"]] ], ["punctuation", ")"],
+ ["punctuation", "("], ["defun", [ ["keyword", "defun" ], ["function", "defabc"], ["punctuation", "("], ["arguments", []], ["punctuation", ")"]]], ["punctuation", ")"]
+]
+
+----------------------------------------------------
+
+Checks for defun.
\ No newline at end of file
diff --git a/tests/languages/lisp/defvar_feature.test b/tests/languages/lisp/defvar_feature.test
new file mode 100644
index 0000000..3d0b6ae
--- /dev/null
+++ b/tests/languages/lisp/defvar_feature.test
@@ -0,0 +1,25 @@
+(defvar foo)
+(defvar foo bar)
+(defvar foo)
+(defvar)
+(defconst foo)
+(defcustom foo)
+(defgroup foo)
+(defvar defabc)
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("], ["defvar", [ ["keyword", "defvar" ], ["variable", "foo"] ]], ["punctuation", ")"],
+ ["punctuation", "("], ["defvar", [ ["keyword", "defvar" ], ["variable", "foo"] ]], " bar", ["punctuation", ")"],
+ ["punctuation", "("], ["defvar", [ ["keyword", "defvar" ], ["variable", "foo"] ]], ["punctuation", ")"],
+ ["punctuation", "("], ["car", "defvar"], ["punctuation", ")"],
+ ["punctuation", "("], ["defvar", [ ["keyword", "defconst" ], ["variable", "foo"] ]], ["punctuation", ")"],
+ ["punctuation", "("], ["defvar", [ ["keyword", "defcustom" ], ["variable", "foo"] ]], ["punctuation", ")"],
+ ["punctuation", "("], ["defvar", [ ["keyword", "defgroup" ], ["variable", "foo"] ]], ["punctuation", ")"],
+ ["punctuation", "("], ["defvar", [ ["keyword", "defvar" ], ["variable", "defabc"] ]], ["punctuation", ")"]
+]
+
+----------------------------------------------------
+
+Checks for defvar.
diff --git a/tests/languages/lisp/heading_feature.test b/tests/languages/lisp/heading_feature.test
new file mode 100644
index 0000000..2136495
--- /dev/null
+++ b/tests/languages/lisp/heading_feature.test
@@ -0,0 +1,11 @@
+;;; h1
+
+----------------------------------------------------
+
+[
+ ["heading", ";;; h1"]
+]
+
+----------------------------------------------------
+
+Checks for headings.
diff --git a/tests/languages/lisp/interactive_feature.test b/tests/languages/lisp/interactive_feature.test
new file mode 100644
index 0000000..f3bc958
--- /dev/null
+++ b/tests/languages/lisp/interactive_feature.test
@@ -0,0 +1,16 @@
+(interactive)
+(interactive a)
+(interactive
+a)
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("], ["interactive", "interactive"], ["punctuation", ")"],
+ ["punctuation", "("], ["interactive", "interactive"], " a", ["punctuation", ")"],
+ ["punctuation", "("], ["interactive", "interactive"], "\r\na", ["punctuation", ")"]
+]
+
+----------------------------------------------------
+
+Checks for declare.
diff --git a/tests/languages/lisp/keyword_feature.test b/tests/languages/lisp/keyword_feature.test
new file mode 100644
index 0000000..f471192
--- /dev/null
+++ b/tests/languages/lisp/keyword_feature.test
@@ -0,0 +1,73 @@
+(let )
+let
+(lexical-let )
+(let* )
+(letf )
+(cl-letf )
+(if )
+(when )
+(while )
+(unless )
+(cons )
+(cl-loop )
+(and )
+(or )
+(not )
+(cond )
+(setq )
+(error )
+(message )
+(null )
+(require )
+(provide )
+(use-package )
+(for )
+(do )
+(collect )
+(return )
+(finally )
+(append )
+(concat )
+(in )
+(by )
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("], ["keyword", "let"], ["punctuation", ")"],
+ "\r\nlet\r\n",
+ ["punctuation", "("], ["keyword", "lexical-let"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "let*"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "letf"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "cl-letf"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "if"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "when"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "while"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "unless"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "cons"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "cl-loop"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "and"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "or"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "not"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "cond"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "setq"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "error"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "message"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "null"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "require"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "provide"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "use-package"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "for"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "do"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "collect"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "return"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "finally"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "append"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "concat"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "in"], ["punctuation", ")"],
+ ["punctuation", "("], ["keyword", "by"], ["punctuation", ")"]
+]
+
+----------------------------------------------------
+
+Checks for all keyword variations.
diff --git a/tests/languages/lisp/lambda-feature.test b/tests/languages/lisp/lambda-feature.test
new file mode 100644
index 0000000..032f198
--- /dev/null
+++ b/tests/languages/lisp/lambda-feature.test
@@ -0,0 +1,13 @@
+(lambda () ())
+(lambda () (foo bar))
+
+----------------------------------------------------
+
+[
+ ["punctuation","("],["lambda",[["keyword","lambda"],["punctuation","("],["arguments",[]],["punctuation",")"]]],["punctuation","("],["punctuation",")"],["punctuation",")"],
+ ["punctuation","("],["lambda",[["keyword","lambda"],["punctuation","("],["arguments",[]],["punctuation",")"]]],["punctuation","("],["car","foo"]," bar",["punctuation",")"],["punctuation",")"]
+]
+
+----------------------------------------------------
+
+Checks for lambda.
\ No newline at end of file
diff --git a/tests/languages/lisp/lisp-property_feature.test b/tests/languages/lisp/lisp-property_feature.test
new file mode 100644
index 0000000..62e324d
--- /dev/null
+++ b/tests/languages/lisp/lisp-property_feature.test
@@ -0,0 +1,15 @@
+(
+:foo
+)
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("],
+ ["lisp-property", ":foo"],
+ ["punctuation", ")"]
+]
+
+----------------------------------------------------
+
+Checks for lisp properties.
diff --git a/tests/languages/lisp/number_boolean.test b/tests/languages/lisp/number_boolean.test
new file mode 100644
index 0000000..4acb969
--- /dev/null
+++ b/tests/languages/lisp/number_boolean.test
@@ -0,0 +1,27 @@
+(1)
+(12)
+(1.2)
+(1.23)
+(1.)
+(foo 1)
+[1 ]
+(-1)
+(+1)
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("], ["number", "1"], ["punctuation", ")"],
+ ["punctuation", "("], ["number", "12"], ["punctuation", ")"],
+ ["punctuation", "("], ["number", "1.2"], ["punctuation", ")"],
+ ["punctuation", "("], ["number", "1.23"], ["punctuation", ")"],
+ ["punctuation", "("], ["number", "1."], ["punctuation", ")"],
+ ["punctuation", "("], ["car", "foo"], ["number", "1"], ["punctuation", ")"],
+ ["punctuation", "["], ["number", "1"], ["punctuation", "]"],
+ ["punctuation", "("], ["number", "-1"], ["punctuation", ")"],
+ ["punctuation", "("], ["number", "+1"], ["punctuation", ")"]
+]
+
+----------------------------------------------------
+
+Checks for numbers.
diff --git a/tests/languages/lisp/punctuation_feature.test b/tests/languages/lisp/punctuation_feature.test
new file mode 100644
index 0000000..904ef79
--- /dev/null
+++ b/tests/languages/lisp/punctuation_feature.test
@@ -0,0 +1,16 @@
+()
+( )
+[]
+(
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("], ["punctuation", ")"],
+ ["punctuation", "("], ["punctuation", ")"],
+ ["punctuation", "["], ["punctuation", "]"],
+ ["punctuation", "("]
+]
+----------------------------------------------------
+
+Checks for punctuation.
\ No newline at end of file
diff --git a/tests/languages/lisp/quoted-symbol_feature.test b/tests/languages/lisp/quoted-symbol_feature.test
new file mode 100644
index 0000000..d02d823
--- /dev/null
+++ b/tests/languages/lisp/quoted-symbol_feature.test
@@ -0,0 +1,17 @@
+(
+#'foo
+'foo
+)
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("],
+ ["quoted-symbol", "#'foo"],
+ ["quoted-symbol", "'foo"],
+ ["punctuation", ")"]
+]
+
+----------------------------------------------------
+
+Checks for quoted symbols.
diff --git a/tests/languages/lisp/splice_feature.test b/tests/languages/lisp/splice_feature.test
new file mode 100644
index 0000000..c80cd73
--- /dev/null
+++ b/tests/languages/lisp/splice_feature.test
@@ -0,0 +1,17 @@
+(
+,foo
+,@foo
+)
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("],
+ ["splice", ",foo"],
+ ["splice", ",@foo"],
+ ["punctuation", ")"]
+]
+
+----------------------------------------------------
+
+Checks for splices
diff --git a/tests/languages/lisp/string_feature.test b/tests/languages/lisp/string_feature.test
new file mode 100644
index 0000000..38fc007
--- /dev/null
+++ b/tests/languages/lisp/string_feature.test
@@ -0,0 +1,27 @@
+(
+""
+"foo
+bar"
+"\"foo\""
+"foo\tbar"
+"`foo'"
+"FOO."
+)
+
+----------------------------------------------------
+
+[
+ ["punctuation", "("],
+ ["string", [ "\"\"" ]],
+ ["string", [ "\"foo\r\nbar\"" ]],
+ ["string", [ "\"\\\"foo\\\"\"" ]],
+ ["string", [ "\"foo\\tbar\"" ]],
+ ["string", [ "\"", ["symbol", "`foo'"], "\"" ]],
+ ["string", [ "\"", ["argument", "FOO"], ".\"" ]],
+ ["punctuation", ")"]
+
+]
+
+----------------------------------------------------
+
+Checks for all string variations.