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

Add support for the .st file extension for StringTemplate HTML files #1117

Closed
wants to merge 1 commit into from

Conversation

pchaigno
Copy link
Contributor

This pull request has been asked for in #693 and #449.
It adds support for the .st file extension which is used for StringTemplate HTML files.
.st files are currently recognized as SmallTalk.
Because the two languages are very different, the bayesian classifier seems to be able to distinguish them.

EDIT: I tested it on 9peppe/peppelab which is currently incorrectly identified as 39.5% SmallTalk.

@pchaigno pchaigno changed the title Add support for .st file extension for StringTemplate HTML files Add support for the .st file extension for StringTemplate HTML files Apr 24, 2014
@pchaigno pchaigno mentioned this pull request Apr 24, 2014
2 tasks
@arfon arfon mentioned this pull request Apr 24, 2014
@arfon
Copy link
Contributor

arfon commented Apr 24, 2014

Addressed in #1120

@arfon arfon closed this Apr 24, 2014
@arfon
Copy link
Contributor

arfon commented Apr 24, 2014

(Thanks @pchaigno)

@pchaigno pchaigno deleted the stringtemplate branch April 24, 2014 21:24
lildude pushed a commit that referenced this pull request Mar 19, 2021
* Split StringTemplates from HTML

Was originally added in #1117 as a HTML variant, but per #4979 language variants should be split.

Default to using default HTML grammar.

Will add a heuristic to differentiate from Smalltalk if needed.

* Fix StringTemplate name and colour

* Rename StringTemplate sample

* Add StringTemplate grammar to index

Uses `atom/language-html`; not ideal as ST-unique syntax isn't matched

* Add .st heuristic

* Add .st heuristic test

* Fix syntax error in heuristics tester

* Generalise part of Smalltalk .st heuristic

* Further fix to Smalltalk heuristic

* Fix unescaped character

* Remove single quote

* Replace StringTemplate grammar module

Using dangmarm/stringtemplate-lang now

* Update StringTemplate grammar link

dangmarm/stringtemplate-lang

* Replace tm_scope

`source.stringtemplate`

* Register StringTemplate tm_scope

* Add grammar license info

* Revert "Replace StringTemplate grammar module"

This reverts commit 7c3bce2.

* Revert StringTemplate grammar addition

* Minor fix to heuristic

* Replace raw space with Regex space char

* Allow whitespace at start of doc

* Add ^ and ' as Smalltalk characters

* Escape ' properly

* More accurate regex

* Change regex from \w+ to \w*

* Add other delimiters to StringTemplate heuristic

* Use grammar added in Alhadis/language-etc@f41e1a4

* Updated cached license data

Co-authored-by: Nixinova <Nixinova@users.noreply.github.com>
Co-authored-by: John Gardner <gardnerjohng@gmail.com>
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants