Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.4.0 #5

Merged
merged 35 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
d9ee49c
Added css-tree and types
thechriskent Feb 29, 2024
28327d3
Initial Style Element Support!
thechriskent Feb 29, 2024
9aab72d
added htmlWithStyleElement test
thechriskent Feb 29, 2024
aac5f50
Prep for 0.3.0 release
thechriskent Feb 29, 2024
2c1d184
Merge pull request #3 from thechriskent/Style-Elements
thechriskent Apr 13, 2024
78a98e2
Initial HorseScript Definition
thechriskent Apr 19, 2024
99beb5f
Added meta.embedded scope
thechriskent Apr 19, 2024
231c06b
Standardized configuration file name
thechriskent Apr 19, 2024
ae83207
Update horsescript-language-configuration.json
thechriskent Apr 19, 2024
5c48862
Repository pattern reorganization
thechriskent Apr 19, 2024
b048508
horsescript syntax test files
thechriskent Apr 20, 2024
0cdb662
magicstrings and initial field subprops
thechriskent Apr 20, 2024
f941526
Field accessor Sub Props! Wowee!
thechriskent Apr 20, 2024
ba0543b
Field Metadata Sub Prop
thechriskent Apr 20, 2024
9191f45
Removed old fieldmetadata section
thechriskent Apr 20, 2024
760b658
Operators!
thechriskent Apr 20, 2024
a057fe0
Functions!
thechriskent Apr 20, 2024
a13aa3f
Initial class mapping
thechriskent Apr 20, 2024
d9dc524
More classes!
thechriskent Apr 20, 2024
8ec1dbe
A Heck Ton of more classes
thechriskent Apr 20, 2024
0565386
Magic String Magic!
thechriskent Apr 21, 2024
2a7114b
fieldsubprop stuff
thechriskent Apr 21, 2024
4bddc0d
Field Value Ship Shape
thechriskent Apr 21, 2024
63dc2aa
Yes/No matching
thechriskent Apr 21, 2024
7fe5ac2
Basic Theme with Token Support
thechriskent Apr 21, 2024
97a49b4
Added Watcher for Theme Generation
thechriskent Apr 21, 2024
0016b18
Initial Theme Token Mapping
thechriskent Apr 21, 2024
70abd04
Color Values
thechriskent Apr 21, 2024
c45990f
Recognizes negative numbers
thechriskent Apr 22, 2024
271239e
Multi-token file support
thechriskent Apr 22, 2024
3eafa1f
Dark Theme!
thechriskent Apr 22, 2024
5349985
Light Theme
thechriskent Apr 22, 2024
7e47c76
File rename
thechriskent Apr 30, 2024
7a8788c
Details for version 0.4.0
thechriskent Apr 30, 2024
1d0ba4f
Merge pull request #4 from thechriskent/neigh
thechriskent Apr 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Field accessor Sub Props! Wowee!
  • Loading branch information
thechriskent committed Apr 20, 2024
commit f94152633754e7b70e0471e232e843a8f16a0136
21 changes: 19 additions & 2 deletions src/test/data/horsescript.neigh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
toString([!donkey])
true, false, null, tiny, 'old', 'operator+inside'

@currentField.id, @currentField.title, @currentField.email, @currentField.sip
@currentField.title, @currentField.email, @currentField.sip
@currentField.picture, @currentField.department, @currentField.jobTitle

@currentField.DisplayName, @currentField.LocationUri
Expand All @@ -14,13 +14,30 @@ true, false, null, tiny, 'old', 'operator+inside'
@currentField.fileName, @currentField.serverRelativeUrl, @currentField.serverUrl
@currentField.thumbnailRenderer.spItemUrl, @currentField.thumbnailRenderer.fileVersion, @currentField.thumbnailRenderer.sponsorToken

@currentField.desc, @currentField.displayValue, @currentField.numeric
@currentField.id, @currentField.displayValue
@currentField.desc, @currentField.numeric

@currentWeb,@me,@now,@rowIndex,@window.innerHeight,@window.innerWidth
@isSelected,@lcid,@UIlcid

@thumbnail.small,@thumbnail.medium,@thumbnail.large
@thumbnail.150,@thumbnail.4048,@thumbnail.100x200,@thumbnail.1000x1600

[$Title,sa] [$!Title.DisplayName]
[$Editor.title], [$Editor.email], [$Editor.sip]
[$Editor.picture], [$Editor.department], [$Editor.jobTitle]

[$Location.DisplayName], [$Location.LocationUri]
[$Location.Address.City], [$Location.Address.CountryOrRegion], [$Location.Address.State], [$Location.Address.Street]
[$Location.Coordinates.Latitude], [$Location.Coordinates.Longitude]

[$Lookup_x0020_Field.lookupId], [$Lookup_x0020_Field.lookupValue]

[$Image.fileName], [$Image.serverRelativeUrl], [$Image.serverUrl]
[$Image.thumbnailRenderer.spItemUrl], [$Image.thumbnailRenderer.fileVersion], [$Image.thumbnailRenderer.sponsorToken]

[$Title.id], [$Title.displayValue]
[$Hyperlink.desc], [$Approval.numeric]

This stuff be bad on purpose (mostly)
@thumbnail,@window,@currentField.Coordinates,@currentField.Address,@currentField.thumbnailRenderer
125 changes: 122 additions & 3 deletions syntaxes/horsescript.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,130 @@
"name": "punctuation.section.brackets.end.horsescript"
}
},
"name": "variable.parameter.horsescript",
"patterns": [
{
"match": "[^\\]]+",
"name": "variable.parameter.inner.horsescript"
"match": "(?<=\\[\\$)[^~#%&*{}\\:<>?/+|\",.\\]]+",
"name": "variable.parameter.field.horsescript"
},
{
"match": "\\.",
"name": "punctuation.accessor.horsescript"
},
{
"match": "title(?=\\W|$)",
"name": "support.constant.person.title.horsescript"
},
{
"match": "email(?=\\W|$)",
"name": "support.constant.person.email.horsescript"
},
{
"match": "sip(?=\\W|$)",
"name": "support.constant.person.sip.horsescript"
},
{
"match": "picture(?=\\W|$)",
"name": "support.constant.person.picture.horsescript"
},
{
"match": "department(?=\\W|$)",
"name": "support.constant.person.department.horsescript"
},
{
"match": "jobTitle(?=\\W|$)",
"name": "support.constant.person.jobtitle.horsescript"
},
{
"match": "DisplayName(?=\\W|$)",
"name": "support.constant.location.displayname.horsescript"
},
{
"match": "LocationUri(?=\\W|$)",
"name": "support.constant.location.locationuri.horsescript"
},
{
"match": "Address(?=\\.(City|CountryOrRegion|State|Street)\\b)",
"name": "variable.language.location.address.horsescript"
},
{
"match": "(?<=\\.Address\\.)City(?=\\W|$)",
"name": "support.constant.location.address.city.horsescript"
},
{
"match": "(?<=\\.Address\\.)CountryOrRegion(?=\\W|$)",
"name": "support.constant.location.address.countryorregion.horsescript"
},
{
"match": "(?<=\\.Address\\.)State(?=\\W|$)",
"name": "support.constant.location.address.state.horsescript"
},
{
"match": "(?<=\\.Address\\.)Street(?=\\W|$)",
"name": "support.constant.location.address.street.horsescript"
},
{
"match": "Coordinates(?=\\.(Latitude|Longitude)\\b)",
"name": "variable.language.location.coordinates.horsescript"
},
{
"match": "(?<=\\.Coordinates\\.)Latitude(?=\\W|$)",
"name": "support.constant.location.coordinates.latitude.horsescript"
},
{
"match": "(?<=\\.Coordinates\\.)Longitude(?=\\W|$)",
"name": "support.constant.location.coordinates.longitude.horsescript"
},
{
"match": "lookupId(?=\\W|$)",
"name": "support.constant.lookup.lookupid.horsescript"
},
{
"match": "lookupValue(?=\\W|$)",
"name": "support.constant.lookup.lookupvalue.horsescript"
},
{
"match": "fileName(?=\\W|$)",
"name": "support.constant.image.filename.horsescript"
},
{
"match": "serverRelativeUrl(?=\\W|$)",
"name": "support.constant.image.serverrelativeurl.horsescript"
},
{
"match": "serverUrl(?=\\W|$)",
"name": "support.constant.image.serverurl.horsescript"
},
{
"match": "thumbnailRenderer(?=\\.(spItemUrl|fileVersion|sponsorToken)\\b)",
"name": "variable.language.image.thumbnailrenderer.horsescript"
},
{
"match": "(?<=\\.thumbnailRenderer\\.)spItemUrl(?=\\W|$)",
"name": "support.constant.image.thumbnailrenderer.spitemurl.horsescript"
},
{
"match": "(?<=\\.thumbnailRenderer\\.)fileVersion(?=\\W|$)",
"name": "support.constant.image.thumbnailrenderer.fileversion.horsescript"
},
{
"match": "(?<=\\.thumbnailRenderer\\.)sponsorToken(?=\\W|$)",
"name": "support.constant.image.thumbnailrenderer.sponsortoken.horsescript"
},
{
"match": "desc(?=\\W|$)",
"name": "support.constant.hyperlink.desc.horsescript"
},
{
"match": "numeric(?=\\W|$)",
"name": "support.constant.moderation.numeric.horsescript"
},
{
"match": "displayValue(?=\\W|$)",
"name": "support.constant.field.displayvalue.horsescript"
},
{
"match": "id(?=\\W|$)",
"name": "support.constant.field.id.horsescript"
}
]
},
Expand Down