Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
msaraiva committed Oct 6, 2020
1 parent 9029f51 commit 89515a4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 22 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

### v0.6.0: 06 Oct 2020

- Add syntax highlighting for `prop`
- Remove syntax highlighting for `property` and `context`

### v0.5.0: 08 Jun 2020

- Add syntax highlighting for `<#Markdown>` component
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Syntax highlighting support for Surface/Elixir
## Features

* Extends Elixir's syntax highlighting to support Surface's syntax inside `~H`
* Highlights `property`, `data`, `slot` and `context` definitions
* Highlights `prop`, `data` and `slot` definitions
* Highlights `<slot>` with the same color as a component
* Support syntax highlighting for `<#Markdown>` component
* Support syntax highlighting for `.sface` files
Expand Down
Binary file modified images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "surface",
"displayName": "Surface: A component based library for Phoenix",
"description": "Syntax highlighting support for Surface/Elixir",
"version": "0.5.0",
"version": "0.6.0",
"author": "Marlus Saraiva",
"publisher": "msaraiva",
"license": "MIT",
Expand Down
22 changes: 2 additions & 20 deletions syntaxes/elixir-surface.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"name": "elixir-surface",
"patterns": [
{
"comment": "Surface property/data/slot",
"match": "^\\s*\\b(property|data|slot)\\b\\s*([_$a-z][$\\w]*[!?]?)\\s*,?\\s*(:[_$a-z][$\\w]*[!?]?)?",
"comment": "Surface prop/data/slot",
"match": "^\\s*\\b(prop|data|slot)\\b\\s*([_$a-z][$\\w]*[!?]?)\\s*,?\\s*(:[_$a-z][$\\w]*[!?]?)?",
"captures": {
"1": {
"name": "entity.name.type.property.elixir"
Expand All @@ -17,24 +17,6 @@
}
}
},
{
"comment": "Surface context",
"match": "^\\s*\\b(context)\\b\\s*\\b(get|set)\\b\\s*([_$a-z][$\\w]*[!?]?)\\s*,?\\s*(:[_$a-z][$\\w]*[!?]?)?",
"captures": {
"1": {
"name": "entity.name.type.property.elixir"
},
"2": {
"name": "entity.name.function.elixir"
},
"3": {
"name": "variable.other.readwrite.module.elixir"
},
"4": {
"name": "parameter.variable.function.elixir"
}
}
},
{
"comment": "Surface heredoc with double quotes",
"name": "text.html.surface",
Expand Down

0 comments on commit 89515a4

Please sign in to comment.