lib/scss_lint/linter/bang_format.rb
# Start from the back and move towards the front so that any !important or
# !default !'s will be found *before* quotation marks. Then we can
# stop at quotation marks to protect against linting !'s within strings
# (e.g. `content`)
Start from the back and move towards the front so that any !important or
default !'s will be found *before* quotation marks. Then we can
stop at quotation marks to protect against linting !'s within strings
Start from the back and move towards the front so that any !important or default ! ' s will be found * before * quotation marks . Then we can stop at quotation marks to protect against linting ! ' s within strings
def find_bang_offset(range)
      stopping_characters = ['!', '\'', '"']
      offset = 0
      offset -= 1 until stopping_characters.include?(character_at(range.end_pos, offset))
      offset
    end
def find_bang_offset ( range ) stopping_characters = [ '!' , '\'' , '"' ] offset = 0 offset -= 1 until stopping_characters . include? ( character_at ( range . end_pos , offset ) ) offset end
Start from the back and move towards the front so that any !important or
default !
Start from the back and move towards the front so that any !important or default !
range
<not_specific>