File: jsl

package info (click to toggle)
ruby-rouge 4.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,836 kB
  • sloc: ruby: 38,168; sed: 2,071; perl: 152; makefile: 8
file content (42 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (3)
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
// Single Line Comment
dt = open( "$sample_data\big class.jmp" );
dt << Distribution( Column( :age ), Histograms Only( 1 ) );
/*
    Multi-line comment
*/
/* Single line block comment */
/*
    Nested
    /*
        Comments
    */
    Work
*/

escapeSequence = "This is an \!b escaped sequence";
escapeQuote = "This is a \!" quotation mark";
escapeStr = "\[This is """"""" an escaped string]\"

list = List( 1, 3, 5 );
alsoAList = {7,9,11};
index = 1::10::2;
a name with spaces = 5;
"a-name!with\!"special\characters"n = 5;
::globalVar = 1;
here:scopedVar = 2;

scientificNotation = 5e9;
decimal = 1.234;
missing = .;
date = 01jan00;
dateTime = 12dec1999:12:30:00.45;

New Window( "Rouge Test",
    tb = Text Box( "Syntax highlighting is great!" )
);

If(tb << Get Text != "", "I'm still formatted correctly!");

New Namespace("rouge");
rouge:scoped.func = function({x, y}, x + y);
rouge:scoped.func(1, 2);