Skip to content

Commit 3bed30c

Browse files
committed
Add syntax schema for Intellij Idea
1 parent 22622b3 commit 3bed30c

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

editors/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Syntax for Editors
2+
3+
## Intellij IDEA
4+
5+
1. Open an `idea` folder
6+
2. Add all files and folders to zip archive, e.g. `settings.zip`
7+
3. File -> Manage IDE Settings -> Import. Select your zip file.

editors/idea/IntelliJ IDEA Global Settings

Whitespace-only changes.

editors/idea/filetypes/OwnLang.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<filetype binary="false" default_extension="own" description="OwnLang files" name="OwnLang">
2+
<highlighting>
3+
<options>
4+
<option name="LINE_COMMENT" value="//" />
5+
<option name="COMMENT_START" value="/*" />
6+
<option name="COMMENT_END" value="*/" />
7+
<option name="HEX_PREFIX" value="0x" />
8+
<option name="NUM_POSTFIXES" value="" />
9+
<option name="HAS_BRACES" value="true" />
10+
<option name="HAS_BRACKETS" value="true" />
11+
<option name="HAS_PARENS" value="true" />
12+
<option name="HAS_STRING_ESCAPES" value="true" />
13+
</options>
14+
<keywords keywords="break;case;class;continue;def;do;else;extract;for;if;match;new;print;println;return;while" ignore_case="false" />
15+
<keywords2 keywords="echo;newarray;try" />
16+
<keywords3 keywords="false;this;true" />
17+
<keywords4 keywords="include;use" />
18+
</highlighting>
19+
<extensionMap>
20+
<mapping ext="own" />
21+
</extensionMap>
22+
</filetype>

0 commit comments

Comments
 (0)