summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2024-03-07 18:50:13 -0700
committerDan Allen <dan.j.allen@gmail.com>2024-03-07 18:50:13 -0700
commit02cfbded6707f722218ecfeefc6c063d29f5e59a (patch)
tree60fca289aaf6c9e0cee08c675f88b0f6c954d6ab /lib
parentb095a23c4a63a1a8b7fe23149fc4fbf3b2814fe0 (diff)
fix invalid assignment
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/parser.rb b/lib/asciidoctor/parser.rb
index c8b6f86b..18f29656 100644
--- a/lib/asciidoctor/parser.rb
+++ b/lib/asciidoctor/parser.rb
@@ -819,7 +819,7 @@ class Parser
unless block
case block_context
when :listing, :source
- if block_context == :source || (language = attributes[1] ? nil : language = attributes[2] || doc_attrs['source-language'])
+ if block_context == :source || (language = attributes[1] ? nil : attributes[2] || doc_attrs['source-language'])
if language
attributes['style'] = 'source'
attributes['language'] = language