diff --git a/README.md b/README.md index eb68c9b..c8bf869 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ The Languages we support till now: - Ruby - Rust - Scala +- Scss - Shell - Swift - TypeScript diff --git a/nirjas/binder.py b/nirjas/binder.py index 5869a4c..077d625 100644 --- a/nirjas/binder.py +++ b/nirjas/binder.py @@ -35,7 +35,7 @@ def readSingleLine(file, regex, sign): output = ''.join(output) if output: - output = output[1:] + output = output[len(sign):] content.append([lineNumber, output.strip()]) line = line.replace(" ","") @@ -161,7 +161,7 @@ def doubleNotTripleSlash(self,file): sign: // ''' self.sign = '//' - self.pattern_doubleNotTripleSlash = r'''([^\/]\/\/[^\/]\s*[\w #\.()@+-_*\d]*)''' + self.pattern_doubleNotTripleSlash = r'''((?