From fb7c97c83f275142ea0c51550c0912c0dd74c4e5 Mon Sep 17 00:00:00 2001 From: Casey Reas Date: Wed, 13 Feb 2013 09:12:30 -0800 Subject: [PATCH 1/3] Samples for Processing language, changes to languages.yml --- lib/linguist/languages.yml | 5 +++++ samples/Processing/hello.pde | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 samples/Processing/hello.pde diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 91cf90eb..21622b41 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -950,6 +950,11 @@ Pure Data: color: "#91de79" lexer: Text only primary_extension: .pd + +Processing: + type: programming + color: "#2779ab" + primary_extension: .pde Python: type: programming diff --git a/samples/Processing/hello.pde b/samples/Processing/hello.pde new file mode 100644 index 00000000..a037cdb8 --- /dev/null +++ b/samples/Processing/hello.pde @@ -0,0 +1,36 @@ +/** + * Shape Primitives. + * + * The basic shape primitive functions are triangle(), + * rect(), quad(), ellipse(), and arc(). Squares are made + * with rect() and circles are made with ellipse(). Each + * of these functions requires a number of parameters to + * determine the shape's position and size. + */ + +void setup() { + size(640, 360); + background(0); + noStroke(); +} + +void draw() { + fill(204); + triangle(18, 18, 18, 360, 81, 360); + + fill(102); + rect(81, 81, 63, 63); + + fill(204); + quad(189, 18, 216, 18, 216, 360, 144, 360); + + fill(255); + ellipse(252, 144, 72, 72); + + fill(204); + triangle(288, 18, 351, 360, 288, 360); + + fill(255); + arc(479, 300, 280, 280, PI, TWO_PI); +} + From 7ae475a8113051f9d5bf3c99329c470804030b06 Mon Sep 17 00:00:00 2001 From: Casey Reas Date: Sat, 23 Feb 2013 19:27:05 -0800 Subject: [PATCH 2/3] Put Processing language into alphabetical order, re: #383 --- lib/linguist/languages.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 21622b41..ef52b651 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -929,6 +929,11 @@ PowerShell: - posh primary_extension: .ps1 +Processing: + type: programming + color: "#2779ab" + primary_extension: .pde + Prolog: type: programming color: "#74283c" @@ -950,11 +955,6 @@ Pure Data: color: "#91de79" lexer: Text only primary_extension: .pd - -Processing: - type: programming - color: "#2779ab" - primary_extension: .pde Python: type: programming From e4b559372856311cad6bf727cb87579bf1e4f866 Mon Sep 17 00:00:00 2001 From: Casey Reas Date: Fri, 8 Mar 2013 16:10:34 -0800 Subject: [PATCH 3/3] Add Processing to languages.yml, includes lexer: Java --- lib/linguist/languages.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index ef52b651..d650cef3 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -599,8 +599,6 @@ Java: ace_mode: java color: "#b07219" primary_extension: .java - extensions: - - .pde Java Server Pages: group: Java @@ -931,6 +929,7 @@ PowerShell: Processing: type: programming + lexer: Java color: "#2779ab" primary_extension: .pde