Skip to content

Commit

Permalink
Support for CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
massivemadness committed May 6, 2023
1 parent 9ceba39 commit e9a1456
Show file tree
Hide file tree
Showing 10 changed files with 1,843 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ dependencies {
implementation 'com.blacksquircle.ui:language-c:2.6.0'
implementation 'com.blacksquircle.ui:language-cpp:2.6.0'
implementation 'com.blacksquircle.ui:language-csharp:2.6.0'
implementation 'com.blacksquircle.ui:language-css:2.6.0'
implementation 'com.blacksquircle.ui:language-groovy:2.6.0'
implementation 'com.blacksquircle.ui:language-html:2.6.0'
implementation 'com.blacksquircle.ui:language-java:2.6.0'
Expand Down
1 change: 1 addition & 0 deletions language-css/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
46 changes: 46 additions & 0 deletions language-css/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* Copyright 2023 Squircle CE contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

plugins {
id 'java-library'
id 'kotlin'
}

ext.libraryGroupId = "com.blacksquircle.ui"
ext.libraryArtifactId = "language-css"

apply from: rootProject.file("gradle/publish.gradle")

group libraryGroupId
version versions.publishVersionName

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

dependencies {

// Core
implementation library.kotlin

// Modules
api project(':editorkit:language-base')
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* Copyright 2023 Squircle CE contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.blacksquircle.ui.language.css

import com.blacksquircle.ui.language.base.Language
import com.blacksquircle.ui.language.base.parser.LanguageParser
import com.blacksquircle.ui.language.base.provider.SuggestionProvider
import com.blacksquircle.ui.language.base.styler.LanguageStyler
import com.blacksquircle.ui.language.css.parser.CssParser
import com.blacksquircle.ui.language.css.provider.CssProvider
import com.blacksquircle.ui.language.css.styler.CssStyler

class CssLanguage : Language {

companion object {
const val LANGUAGE_NAME = "css"
}

override val languageName = LANGUAGE_NAME

override fun getParser(): LanguageParser {
return CssParser.getInstance()
}

override fun getProvider(): SuggestionProvider {
return CssProvider.getInstance()
}

override fun getStyler(): LanguageStyler {
return CssStyler.getInstance()
}
}
Loading

0 comments on commit e9a1456

Please sign in to comment.