Commit 20ab91f5 authored by Zachary Goldstein's avatar Zachary Goldstein
Browse files

renamed UMASM -> UMASM Improved, UMASM_Language -> UMASM, updated files &...

renamed UMASM -> UMASM Improved, UMASM_Language -> UMASM, updated files & README to reflect this change
parent d4a6ea3c
UMASM Syntax Package
Author: Zachary Goldstein (zgolds01), Tufts University
Created: 23 Apr 2020
Last Modified: 14 Nov 2020
Purpose:
- highlight UMASM source according to grammar specification
- facilitate (relatively) painless UMASM programming
Acknowledgements
- the color scheme is inspired by Sublime's default syntax
highlighter for C
- the UMASM grammar specification was provided by the COMP 0040
course staff at Tufts University
File Overview:
- umasm.sublime-color-scheme
This file contains the styling data for each scope defined in the
'sublime-syntax' for UMASM. If you want to change the color and or
styling for a particular scope, that can be done in this file.
You can read up on Sublime Text 3 color schemes here:
https://www.sublimetext.com/docs/3/color_schemes.html
- umasm.sublime-settings
This file contains settings for this package. Crucially, it links the
'sublime-syntax' with the 'sublime-color-scheme'.
- umasm.sublime-syntax
This file contains all the syntax highlighting rules. Scopes are
specified using 'regular expression' pattern matching (and since
Sublime in built on Python, we have access to a robust set of
'regex' tools). If you want to add additional scopes, that can be
done in this file.
By extending the regex patterns in the simpler "UMASM" syntax
highlighting package, "UMASM Improved" can reliably identify and
highlight syntactically invalid lines of UMASM source code.
......@@ -47,12 +47,6 @@
},
"rules":
[
{
"name": "Dummy",
"scope": "dummy",
"foreground": "var(grey)",
"font_style": "italic"
},
{
"name": "Label",
"scope": "label",
......@@ -113,11 +107,5 @@
"scope": "keyword",
"foreground": "var(red2)"
},
{
"name": "Invalid",
"scope": "invalid",
"foreground": "var(white2)",
"background": "var(red2)"
},
]
}
\ No newline at end of file
{
"color_scheme": "umasm.sublime-color-scheme",
}
\ No newline at end of file
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: UMASM_Language
name: UMASM
file_extensions:
- ums
scope: source
......
UMASM Improved Syntax Package
Author: Zachary Goldstein (zgolds01), Tufts University
Created: 23 Apr 2020
Last Modified: 14 Nov 2020
Purpose:
- highlight UMASM source according to grammar specification
- facilitate (relatively) painless UMASM programming
- highlight UMASM grammar violations to accelerate development cycle
File Overview:
- umasm_improved.sublime-color-scheme
This file contains the styling data for each scope defined in the
'sublime-syntax' for UMASM Improved. If you want to change the color
and or styling for a particular scope, that can be done in this file.
You can read up on Sublime Text 3 color schemes here:
https://www.sublimetext.com/docs/3/color_schemes.html
- umasm_improved.sublime-settings
This file contains settings for this package. Crucially, it links the
'sublime-syntax' with the 'sublime-color-scheme'.
- umasm_improved.sublime-syntax
This file contains all the syntax highlighting rules. Scopes are
specified using 'regular expression' pattern matching (and since
Sublime in built on Python, we have access to a robust set of
'regex' tools). If you want to add additional scopes, that can be
done in this file.
By extending the regex patterns in this package, it is possible to
build a (rather cumbersome, but rather useful) pattern that identifies
and highlights syntactically invalid lines of UMASM source code. To do
this, you'll have to represent the entire UMASM grammar as a 'regex'
pattern. This functionality is built into the "UMASM Improved" syntax
highlighting package.
{
"name": "UMASM_Language",
"name": "UMASM Improved",
"author": "Zachary Goldstein",
"variables":
{
......@@ -47,6 +47,12 @@
},
"rules":
[
{
"name": "Dummy",
"scope": "dummy",
"foreground": "var(grey)",
"font_style": "italic"
},
{
"name": "Label",
"scope": "label",
......@@ -107,5 +113,11 @@
"scope": "keyword",
"foreground": "var(red2)"
},
{
"name": "Invalid",
"scope": "invalid",
"foreground": "var(white2)",
"background": "var(red2)"
},
]
}
\ No newline at end of file
[
{ "keys": ["command+a"], "command": "toggle_comment", "args": { "block": false } }
]
\ No newline at end of file
{
"color_scheme": "umasm.sublime-color-scheme",
"tab_size": 4,
"color_scheme": "umasm_improved.sublime-color-scheme",
"tab_size": 4,
"translate_tabs_to_spaces": true,
}
\ No newline at end of file
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: UMASM
name: UMASM Improved
file_extensions:
- ums
scope: source
......
UMASM Syntax Package
Author: Zachary Goldstein (zgolds01), Tufts University
Date: 23 Apr 2020
Purpose:
- highlight UMASM source according to grammar specification
- facilitate (relatively) painless UMASM programming
- coat the UMASM language in some super sweet syntactic sugar
- highlight UMASM grammar violations
File Overview:
- UMASM_Language.sublime-color-scheme
This file contains the styling data for each scope defined in the
'sublime-syntax' for UMASM_Language. If you want to change the color
and or styling for a particular scope, that can be done in this file.
You can read up on Sublime Text 3 color schemes here:
https://www.sublimetext.com/docs/3/color_schemes.html
- UMASM_Language.sublime-settings
This file contains settings for this package. Crucially, it links the
'sublime-syntax' with the 'sublime-color-scheme'.
- UMASM_Language.sublime-syntax
This file contains all the syntactic sugar. Scopes are specified using
'regular expression' pattern matching (and since Sublime in built on
Python, we have access to a robust set of 'regex' tools). If you want
to add additional scopes, that can be done in this file.
[
{ "keys": ["command+a"], "command": "toggle_comment", "args": { "block": false } }
]
\ No newline at end of file
UMASM_Language Syntax Package
Author: Zachary Goldstein (zgolds01), Tufts University
Date: 23 Apr 2020
Purpose:
- highlight UMASM source according to grammar specification
- facilitate (relatively) painless UMASM programming
- coat the UMASM language in some super sweet syntactic sugar
File Overview:
- UMASM_Language.sublime-color-scheme
This file contains the styling data for each scope defined in the
'sublime-syntax' for UMASM_Language. If you want to change the color
and or styling for a particular scope, that can be done in this file.
You can read up on Sublime Text 3 color schemes here:
https://www.sublimetext.com/docs/3/color_schemes.html
- UMASM_Language.sublime-settings
This file contains settings for this package. Crucially, it links the
'sublime-syntax' with the 'sublime-color-scheme'.
- UMASM_Language.sublime-syntax
This file contains all the syntactic sugar. Scopes are specified using
'regular expression' pattern matching (and since Sublime in built on
Python, we have access to a robust set of 'regex' tools). If you want
to add additional scopes, that can be done in this file.
For an extra dash of syntactic sugar, it is possible to build a (rather
cumbersome) pattern that identifies and highlights syntactically invalid
lines of UMASM source code. To do this, you'll have to represent the
UMASM grammar as a 'regex' pattern.
{
"color_scheme": "UMASM_Language.sublime-color-scheme",
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment