Skip to content

Commit f177e67

Browse files
git init
0 parents commit f177e67

File tree

1,435 files changed

+108126
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,435 files changed

+108126
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto
2+
*.pdf diff=astextplain
3+
*.PDF diff=astextplain

.github/ISSUE_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### Issue Summary
2+
3+
This causes an issue because ... !
4+
5+
### Steps to Reproduce
6+
7+
1. This is the first step.
8+
2. This is the second step.
9+
3. This is the third step.
10+
11+
### Technical details
12+
13+
* Editor:
14+
* Version:
15+
* Operating System:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Yes, I have checked the following before requesting to pull this:
2+
3+
* [ ] line endings in files have not changed (CR / LF / CRLF)
4+
* [ ] all grammar changes only apply to the Linden Scripting Language

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.bak
2+
*.cache
3+
*.elc
4+
*.pyc
5+
*.pyo
6+
*.sublime-workspace
7+
.DS_Store
8+
Desktop.ini
9+
Thumbs.db

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# [Linden Scripting Language (LSL)](https://wiki.secondlife.com/wiki/LSL_Portal) syntax grammar, syntax highlighting and snippet files.
2+
3+
![Maintained](https://img.shields.io/maintenance/yes/2017.svg?style=flat-square)
4+
[![Open issues](https://img.shields.io/github/issues-raw/buildersbrewery/linden-scripting-language.svg?style=flat-square)](https://github.com/buildersbrewery/linden-scripting-language/issues)
5+
[![Open pull requests](https://img.shields.io/github/issues-pr-raw/buildersbrewery/linden-scripting-language.svg?style=flat-square)](https://github.com/buildersbrewery/linden-scripting-language/pulls)
6+
7+
## About
8+
9+
In this repository you can find the syntax grammar, syntax highlighting and snippet files for the [Linden Scripting Language (LSL)](https://wiki.secondlife.com/wiki/LSL_Portal) of [Second Life](https://www.secondlife.com) for different kinds of software.
10+
11+
## Usage
12+
13+
### Quick start
14+
15+
* Download:
16+
* [`buildersbrewery/linden-scripting-language@master` as `*.zip`](https://github.com/buildersbrewery/linden-scripting-language/archive/master.zip)
17+
* [`buildersbrewery/linden-scripting-language@master` as `*.tar.gz`](https://github.com/buildersbrewery/linden-scripting-language/archive/master.tar.gz)
18+
* Clone the repo:
19+
20+
```bash
21+
# recommended to use ssh
22+
git clone git@github.com:buildersbrewery/linden-scripting-language.git
23+
```
24+
25+
* Check source:
26+
* [commits to master](https://github.com/buildersbrewery/linden-scripting-language/commits/master/)
27+
* [branches](https://github.com/buildersbrewery/linden-scripting-language/branches/)
28+
* [compare branches, commits, tags (across forks)](https://github.com/buildersbrewery/linden-scripting-language/compare/)
29+
30+
### Bugs, issues & feature requests
31+
32+
* Please [search for existing issues and pull requests](https://github.com/buildersbrewery/linden-scripting-language/issues/?q=is%3Aopen) before [using this link to open a new issue](https://github.com/buildersbrewery/linden-scripting-language/issues/new/?labels=discussion,watchlist&assignee=buildersbrewery).
33+
34+
## Disclaimer
35+
36+
```text
37+
Second Life®, Linden Scripting Language and the inSL logo are trademarks of
38+
Linden Research, Inc. The Builder's Brewery is neither affiliated with nor
39+
sponsored by Linden Research.
40+
```
41+
42+
---
43+
44+
<p align="center">
45+
<img src="http://s3.amazonaws.com/static-secondlife-com/_img/brand_center/insl_logo_color.gif" alt="inSL logo" width="204px" height="120px">
46+
</p>

ace/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Ace Editor
2+
3+
Here you can find the syntax grammar, syntax highlighting and snippet files for the [Linden Scripting Language (LSL)](https://wiki.secondlife.com/wiki/LSL_Portal) of [Second Life](https://www.secondlife.com) for the [Ace Editor](http://ace.c9.io/) which can also be found on Github under [ajaxorg/ace](https://github.com/ajaxorg/ace).
4+
5+
For maintenance reasons all files here are LSL related only.

ace/demo/kitchen-sink/docs/lsl.lsl

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/*
2+
Testing syntax highlighting
3+
of Ace Editor
4+
for the Linden Scripting Language
5+
*/
6+
7+
integer someIntNormal = 3672;
8+
integer someIntHex = 0x00000000;
9+
integer someIntMath = PI_BY_TWO;
10+
11+
integer event = 5673; // invalid.illegal
12+
13+
key someKeyTexture = TEXTURE_DEFAULT;
14+
string someStringSpecial = EOF;
15+
16+
some_user_defined_function_without_return_type(string inputAsString)
17+
{
18+
llSay(PUBLIC_CHANNEL, inputAsString);
19+
}
20+
21+
string user_defined_function_returning_a_string(key inputAsKey)
22+
{
23+
return (string)inputAsKey;
24+
}
25+
26+
default
27+
{
28+
state_entry()
29+
{
30+
key someKey = NULL_KEY;
31+
someKey = llGetOwner();
32+
33+
string someString = user_defined_function_returning_a_string(someKey);
34+
35+
some_user_defined_function_without_return_type(someString);
36+
}
37+
38+
touch_start(integer num_detected)
39+
{
40+
list agentsInRegion = llGetAgentList(AGENT_LIST_REGION, []);
41+
integer numOfAgents = llGetListLength(agentsInRegion);
42+
43+
integer index; // defaults to 0
44+
for (; index <= numOfAgents - 1; index++) // for each agent in region
45+
{
46+
llRegionSayTo(llList2Key(agentsInRegion, index), PUBLIC_CHANNEL, "Hello, Avatar!");
47+
}
48+
}
49+
50+
touch_end(integer num_detected)
51+
{
52+
someIntNormal = 3672;
53+
someIntHex = 0x00000000;
54+
someIntMath = PI_BY_TWO;
55+
56+
event = 5673; // invalid.illegal
57+
58+
someKeyTexture = TEXTURE_DEFAULT;
59+
someStringSpecial = EOF;
60+
61+
llSetInventoryPermMask("some item", MASK_NEXT, PERM_ALL); // reserved.godmode
62+
63+
llWhisper(PUBLIC_CHANNEL, "Leaving \"default\" now...");
64+
state other;
65+
}
66+
}
67+
68+
state other
69+
{
70+
state_entry()
71+
{
72+
llWhisper(PUBLIC_CHANNEL, "Entered \"state other\", returning to \"default\" again...");
73+
state default;
74+
}
75+
}

0 commit comments

Comments
 (0)