Sha256: e899b7e801ea91d16640408c1b4be8d0769dade2c1da02f938717280b7ef8078

Contents?: true

Size: 922 Bytes

Versions: 10

Compression:

Stored size: 922 Bytes

Contents

Prism.languages.cpp = Prism.languages.extend('c', {
	'keyword': /\b(alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,
	'boolean': /\b(true|false)\b/,
	'operator': /[-+]{1,2}|!=?|<{1,2}=?|>{1,2}=?|\->|:{1,2}|={1,2}|\^|~|%|&{1,2}|\|?\||\?|\*|\/|\b(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/
});

Prism.languages.insertBefore('cpp', 'keyword', {
	'class-name': {
		pattern: /(class\s+)[a-z0-9_]+/i,
		lookbehind: true
	}
});

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
prism-rails-1.6.0.3 vendor/assets/javascripts/prism/prism-cpp.js
prism-rails-1.6.0.2 vendor/assets/javascripts/prism/prism-cpp.js
prism-rails-1.6.0.1 vendor/assets/javascripts/prism/prism-cpp.js
prism-rails-1.5.1.2 vendor/assets/javascripts/prism-cpp.js
prism-rails-1.5.1 vendor/assets/javascripts/prism-cpp.js
highlighting-0.1.4 vendor/assets/javascripts/prism-cpp.js
highlighting-0.1.3 vendor/assets/javascripts/prism-cpp.js
highlighting-0.1.2 vendor/assets/javascripts/prism-cpp.js
highlighting-0.1.1 vendor/assets/javascripts/prism-cpp.js
highlighting-0.1.0 vendor/assets/javascripts/prism-cpp.js